Add system attention indicators
- Different LEDs and statuses will be added to hardware status page
- Status for power will be shown and LED included is System identify Led
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com>
Change-Id: I8689f7bf3cc02a7a90379ec50b005bf344c091e4
diff --git a/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue b/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue
index 54129d1..f2cdb3e 100644
--- a/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue
+++ b/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue
@@ -30,12 +30,19 @@
<template #cell(locationIndicatorActive)="{ item }">
<b-form-checkbox
- id="identifyLedSwitch"
+ id="identifyLedSwitchSystem"
v-model="item.locationIndicatorActive"
- data-test-id="hardwareStatus-toggle-identifyLed"
+ data-test-id="inventorySystem-toggle-identifyLed"
switch
@change="toggleIdentifyLedSwitch"
>
+ <span class="sr-only">
+ {{ $t('pageInventory.table.identifyLed') }}
+ </span>
+ <span v-if="item.locationIndicatorActive">
+ {{ $t('global.status.on') }}
+ </span>
+ <span v-else>{{ $t('global.status.off') }}</span>
</b-form-checkbox>
</template>