summaryrefslogtreecommitdiffstats
path: root/app/common
diff options
context:
space:
mode:
authorCamVan Nguyen <ctnguyen@us.ibm.com>2018-05-01 22:23:21 -0500
committerGunnar Mills <gmills@us.ibm.com>2018-05-04 13:16:34 +0000
commit3490c0fc0a70f97efff955ad0da72386e619e50a (patch)
tree1f3d59ac498a7edd1996fd3cf6f90d7e90b5191f /app/common
parent94732708ac38137ba94ee1470a2c1f5a36c0d09f (diff)
downloadphosphor-webui-3490c0fc0a70f97efff955ad0da72386e619e50a.tar.gz
phosphor-webui-3490c0fc0a70f97efff955ad0da72386e619e50a.zip
Display red 'error' icon for Error state
- Display a red 'error' icon vs a yellow 'warning' icon when the Server Power is in an Error (Quiesced) state. Resolves openbmc/openbmc#3149 Change-Id: I0d23d9406370e5b49d554b979aaedb5754601e3b Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
Diffstat (limited to 'app/common')
-rw-r--r--app/common/directives/app-header.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/common/directives/app-header.html b/app/common/directives/app-header.html
index 887af51..5395d2a 100644
--- a/app/common/directives/app-header.html
+++ b/app/common/directives/app-header.html
@@ -18,7 +18,7 @@
<a href="#/server-health/event-log" class="header__server-health">Server health
<i class="icon icon-angle" aria-hidden="true"></i><span ng-class="{'status-light__error': dataService.server_health == 'Critical', 'status-light__warn': dataService.server_health == 'Warning', 'status-light__good': dataService.server_health == 'Good'}">{{dataService.server_health}}</span></a>
<a href="#/server-control/power-operations" class="header__server-power" role="button">Server power
- <i class="icon icon-angle" aria-hidden="true"></i><span ng-class="{'status-light__off': dataService.server_state == 'Off', 'status-light__disabled': dataService.server_state == 'Unreachable', 'status-light__good': dataService.server_state == 'Running', 'status-light__warn': dataService.server_state == 'Quiesced'}">{{dataService.server_state | quiescedToError}}</span></a>
+ <i class="icon icon-angle" aria-hidden="true"></i><span ng-class="{'status-light__off': dataService.server_state == 'Off', 'status-light__disabled': dataService.server_state == 'Unreachable', 'status-light__good': dataService.server_state == 'Running', 'status-light__error': dataService.server_state == 'Quiesced'}">{{dataService.server_state | quiescedToError}}</span></a>
<p class="header__refresh">Data last refreshed<span>{{dataService.last_updated |date:'h:mm:ss MMM dd yyyy'}}</span>
</p>
<button class="header__page-refresh" ng-click="refresh()" aria-label="refresh page data">
OpenPOWER on IntegriCloud