summaryrefslogtreecommitdiff
path: root/src/store/modules/HardwareStatus/PowerSupplyStore.js
diff options
context:
space:
mode:
authorSneha Patel <Snehaben.Patel@ibm.com>2021-09-02 20:23:42 +0300
committerDixsie Wolmers <dixsiew@gmail.com>2021-09-15 16:38:24 +0300
commit9f61234ab2e8beea6ebe1f2e9dc445cd3521a0e4 (patch)
tree53bd70b94b43c7ccfcc8b2ecae54a426821be224 /src/store/modules/HardwareStatus/PowerSupplyStore.js
parent4928206943a094beab60f2d91ee7e9c9174b6223 (diff)
downloadwebui-vue-9f61234ab2e8beea6ebe1f2e9dc445cd3521a0e4.tar.xz
Location codes on Hardware status-Inventory and LEDs
Display location number on hardware inventory items Signed-off-by: Sneha Patel <Snehaben.Patel@ibm.com> Change-Id: Ib5555191f21ac4546d0b2e2af5b395aaa3a5357e
Diffstat (limited to 'src/store/modules/HardwareStatus/PowerSupplyStore.js')
-rw-r--r--src/store/modules/HardwareStatus/PowerSupplyStore.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/store/modules/HardwareStatus/PowerSupplyStore.js b/src/store/modules/HardwareStatus/PowerSupplyStore.js
index f7be2809..dc7691da 100644
--- a/src/store/modules/HardwareStatus/PowerSupplyStore.js
+++ b/src/store/modules/HardwareStatus/PowerSupplyStore.js
@@ -23,6 +23,7 @@ const PowerSupplyStore = {
PowerInputWatts,
SerialNumber,
SparePartNumber,
+ Location,
Status = {},
} = powerSupply;
return {
@@ -38,6 +39,7 @@ const PowerSupplyStore = {
powerInputWatts: PowerInputWatts,
name: Name,
sparePartNumber: SparePartNumber,
+ locationNumber: Location?.PartLocation?.ServiceLabel,
statusState: Status.State,
};
});