summaryrefslogtreecommitdiffstats
path: root/app/common/directives/firmware-list.html
diff options
context:
space:
mode:
authorRyan Arnell <iffy.ryan@ibm.com>2018-12-13 10:50:17 -0600
committerGunnar Mills <gmills@us.ibm.com>2018-12-21 15:40:50 +0000
commit84e7a936db2addc3c10be97c3b348b9ffdb3601b (patch)
treeb27b7d6c7a3a8d6a45cd653354f084a8dd0356b3 /app/common/directives/firmware-list.html
parent0b0e26deda16a86b316f1cda631f18a45608d5bf (diff)
downloadphosphor-webui-84e7a936db2addc3c10be97c3b348b9ffdb3601b.tar.gz
phosphor-webui-84e7a936db2addc3c10be97c3b348b9ffdb3601b.zip
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>
Diffstat (limited to 'app/common/directives/firmware-list.html')
-rw-r--r--app/common/directives/firmware-list.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/common/directives/firmware-list.html b/app/common/directives/firmware-list.html
index 00fb8f2..1227a20 100644
--- a/app/common/directives/firmware-list.html
+++ b/app/common/directives/firmware-list.html
@@ -39,7 +39,7 @@
</div>
<div class="table__cell firmware__version" ng-class="{'active':firmware.isExtended}">
<span class="table__cell-label">Version:</span>{{firmware.Version}}
- <div class="icon icon__more" ng-click="firmware.extended.show = ! firmware.extended.show"
+ <div class="icon icon__more" ng-click="toggleMoreDropdown($event, firmware)"
ng-class="{'active':firmware.isExtended}" ng-show="firmware.isExtended">
<svg version="1.1" x="0px" y="0px" viewBox="0 0 24.3 24.6">
<path d="M12.1,23C6.1,23,1.3,18.2,1.3,12.3S6.1,1.6,12.1,1.6s10.7,4.8,10.7,10.7S18,23,12.1,23z M12.1,2.6c-5.4,0-9.7,4.4-9.7,9.7 S6.7,22,12.1,22s9.7-4.4,9.7-9.7S17.4,2.6,12.1,2.6z"/>
@@ -51,7 +51,7 @@
</svg>
</div>
</div>
- <div class="icon__more-dropdown" ng-show="firmware.extended.show">
+ <div class="icon__more-dropdown" ng-show="firmware.extended.show" click-outside="firmware.extended.show=false;">
<h5 class="bold">Extended version information</h5>
<p class="no-margin" ng-repeat="version in firmware.extended.versions">{{version.title}}: {{version.version}}</p>
</div>
OpenPOWER on IntegriCloud