summaryrefslogtreecommitdiff
path: root/src/store
diff options
context:
space:
mode:
authorDixsie Wolmers <dixsie@ibm.com>2021-05-13 17:08:53 +0300
committerDerick Montague <derick.montague@ibm.com>2021-06-28 22:13:43 +0300
commitdd652d71e8243d8d9a953d46bdf6d75f448127ce (patch)
tree229e5f1afefaaa6380c4b0306a2754a1cd8c7770 /src/store
parent25e17a119f023a472b90bf645f4211c66718b446 (diff)
downloadwebui-vue-dd652d71e8243d8d9a953d46bdf6d75f448127ce.tar.xz
Add fans hardware status missing properties
Adds identify LED, name - hardware type, health rollup, fan speed, and location number properties to table. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I5f209b853ab70becf4c4289e871da1ce279d1ac3
Diffstat (limited to 'src/store')
-rw-r--r--src/store/modules/Health/FanStore.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/store/modules/Health/FanStore.js b/src/store/modules/Health/FanStore.js
index b4a4189a..fca1f326 100644
--- a/src/store/modules/Health/FanStore.js
+++ b/src/store/modules/Health/FanStore.js
@@ -11,12 +11,27 @@ const FanStore = {
mutations: {
setFanInfo: (state, data) => {
state.fans = data.map((fan) => {
- const { MemberId, Status = {}, PartNumber, SerialNumber } = fan;
+ const {
+ IndicatorLED,
+ Location,
+ MemberId,
+ Name,
+ Reading,
+ ReadingUnits,
+ Status = {},
+ PartNumber,
+ SerialNumber,
+ } = fan;
return {
id: MemberId,
health: Status.Health,
partNumber: PartNumber,
serialNumber: SerialNumber,
+ healthRollup: Status.HealthRollup,
+ identifyLed: IndicatorLED,
+ locationNumber: Location,
+ name: Name,
+ speed: Reading + ' ' + ReadingUnits,
statusState: Status.State,
};
});