summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue b/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue
index 65994810..c05ae734 100644
--- a/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue
+++ b/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue
@@ -53,6 +53,7 @@
<!-- Toggle identify LED -->
<template #cell(identifyLed)="row">
<b-form-checkbox
+ v-if="hasIdentifyLed(row.item.identifyLed)"
v-model="row.item.identifyLed"
name="switch"
switch
@@ -63,6 +64,7 @@
</span>
<span v-else> {{ $t('global.status.off') }} </span>
</b-form-checkbox>
+ <div v-else>--</div>
</template>
<template #row-details="{ item }">
<b-container fluid>
@@ -250,6 +252,9 @@ export default {
})
.catch(({ message }) => this.errorToast(message));
},
+ hasIdentifyLed(identifyLed) {
+ return typeof identifyLed === 'boolean';
+ },
},
};
</script>