summaryrefslogtreecommitdiff
path: root/src/views/HardwareStatus/Inventory/InventoryTableProcessors.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/HardwareStatus/Inventory/InventoryTableProcessors.vue')
-rw-r--r--src/views/HardwareStatus/Inventory/InventoryTableProcessors.vue22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/views/HardwareStatus/Inventory/InventoryTableProcessors.vue b/src/views/HardwareStatus/Inventory/InventoryTableProcessors.vue
index 793dbd86..07376a5b 100644
--- a/src/views/HardwareStatus/Inventory/InventoryTableProcessors.vue
+++ b/src/views/HardwareStatus/Inventory/InventoryTableProcessors.vue
@@ -48,6 +48,11 @@
<status-icon :status="statusIcon(value)" />
{{ value }}
</template>
+ <!-- StatusState -->
+ <template #cell(statusState)="{ value }">
+ <status-icon :status="statusStateIcon(value)" />
+ {{ value }}
+ </template>
<!-- Toggle identify LED -->
<template #cell(identifyLed)="row">
@@ -201,6 +206,13 @@ export default {
tdClass: 'text-nowrap',
},
{
+ key: 'statusState',
+ label: this.$t('pageInventory.table.state'),
+ formatter: this.dataFormatter,
+ sortable: true,
+ tdClass: 'text-nowrap',
+ },
+ {
key: 'locationNumber',
label: this.$t('pageInventory.table.locationNumber'),
formatter: this.dataFormatter,
@@ -252,6 +264,16 @@ export default {
hasIdentifyLed(identifyLed) {
return typeof identifyLed === 'boolean';
},
+ statusStateIcon(status) {
+ switch (status) {
+ case 'Enabled':
+ return 'success';
+ case 'Absent':
+ return 'warning';
+ default:
+ return '';
+ }
+ },
},
};
</script>