Fix issue about menu not disappearing on firmware page
In firmware update page "More info” dialog did not disappear until
it is clicked again. With this push users can click anywhere outside
the menu and it disappears.
Resolves openbmc/phosphor-webui#32
Change-Id: I1519caf2428c702af03fb0e4dd8a08d0c0588abf
Signed-off-by: Ryan Arnell <iffy.ryan@ibm.com>
diff --git a/app/common/directives/firmware-list.js b/app/common/directives/firmware-list.js
index a08ef8d..ec3a30e 100644
--- a/app/common/directives/firmware-list.js
+++ b/app/common/directives/firmware-list.js
@@ -24,6 +24,11 @@
$scope.changePriority = function(imageId, imageVersion, from, to) {
$scope.$parent.changePriority(imageId, imageVersion, from, to);
};
+
+ $scope.toggleMoreDropdown = function(event, firmware) {
+ firmware.extended.show = !firmware.extended.show;
+ event.stopPropagation();
+ };
}
]
};