Change system indicatorLED property
- Changed system IndicatorLED property to use LocationIndicatorActive
and updated SystemStore for same.
Signed-off-by: Suren Neware <sneware9@in.ibm.com>
Change-Id: I0083034b7a8993074262a1e2b60c5829f8519dbe
diff --git a/src/store/modules/Health/SystemStore.js b/src/store/modules/Health/SystemStore.js
index 30ae66b..23b12d7 100644
--- a/src/store/modules/Health/SystemStore.js
+++ b/src/store/modules/Health/SystemStore.js
@@ -16,7 +16,7 @@
system.firmwareVersion = data.BiosVersion;
system.health = data.Status.Health;
system.id = data.Id;
- system.indicatorLed = data.IndicatorLED;
+ system.locationIndicatorActive = data.LocationIndicatorActive;
system.manufacturer = data.Manufacturer;
system.model = data.Model;
system.partNumber = data.PartNumber;
diff --git a/src/views/Health/HardwareStatus/HardwareStatusTableStystem.vue b/src/views/Health/HardwareStatus/HardwareStatusTableStystem.vue
index d408701..fa083a0 100644
--- a/src/views/Health/HardwareStatus/HardwareStatusTableStystem.vue
+++ b/src/views/Health/HardwareStatus/HardwareStatusTableStystem.vue
@@ -43,7 +43,13 @@
<br />
<!-- Indicator LED -->
<dt>{{ $t('pageHardwareStatus.table.indicatorLed') }}:</dt>
- <dd>{{ tableFormatter(item.indicatorLed) }}</dd>
+ <dd v-if="item.locationIndicatorActive === true">
+ {{ $t('global.status.on') }}
+ </dd>
+ <dd v-else-if="item.locationIndicatorActive === false">
+ {{ $t('global.status.off') }}
+ </dd>
+ <dd v-else>--</dd>
<br />
<!-- Model -->
<dt>{{ $t('pageHardwareStatus.table.model') }}:</dt>