From dd652d71e8243d8d9a953d46bdf6d75f448127ce Mon Sep 17 00:00:00 2001 From: Dixsie Wolmers Date: Thu, 13 May 2021 09:08:53 -0500 Subject: 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 Change-Id: I5f209b853ab70becf4c4289e871da1ce279d1ac3 --- src/locales/en-US.json | 4 +++ src/store/modules/Health/FanStore.js | 17 +++++++++- .../HardwareStatus/HardwareStatusTableFans.vue | 38 +++++++++++++++++++--- 3 files changed, 53 insertions(+), 6 deletions(-) diff --git a/src/locales/en-US.json b/src/locales/en-US.json index d525bc43..31b44462 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -379,11 +379,15 @@ "connectTypesSupported": "Connect types supported", "description": "Description", "efficiencyPercent": "Efficiency percent", + "fanSpeed": "Fan speed", "firmwareVersion": "Firmware version", "graphicalConsole": "Graphical console", + "hardwareType": "Hardware type", "health": "Health", "id": "ID", + "identifyLed": "Identify LED", "indicatorLed": "Indicator LED", + "locationNumber": "Location number", "instructionSet": "Instruction set", "manufacturer": "Manufacturer", "maxConcurrentSessions": "Max concurrent sessions", 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, }; }); diff --git a/src/views/Health/HardwareStatus/HardwareStatusTableFans.vue b/src/views/Health/HardwareStatus/HardwareStatusTableFans.vue index 10b14a47..fb998a38 100644 --- a/src/views/Health/HardwareStatus/HardwareStatusTableFans.vue +++ b/src/views/Health/HardwareStatus/HardwareStatusTableFans.vue @@ -53,12 +53,41 @@