summaryrefslogtreecommitdiff
path: root/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue
diff options
context:
space:
mode:
authorSukanya Pandey <sukapan1@in.ibm.com>2021-06-10 13:05:21 +0300
committerDerick Montague <derick.montague@ibm.com>2021-08-20 15:29:30 +0300
commit05388966bc9ff2d65e7696c209a5827e82d61297 (patch)
tree2c10c6b3d9bbcaba382bb68c4857571900582a49 /src/views/HardwareStatus/Inventory/InventoryTableSystem.vue
parent3145d4d98b2d4646f958da8e7b409b23da4f9176 (diff)
downloadwebui-vue-05388966bc9ff2d65e7696c209a5827e82d61297.tar.xz
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
Diffstat (limited to 'src/views/HardwareStatus/Inventory/InventoryTableSystem.vue')
-rw-r--r--src/views/HardwareStatus/Inventory/InventoryTableSystem.vue11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue b/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue
index 54129d1f..f2cdb3ed 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>