summaryrefslogtreecommitdiff
path: root/src/views/_sila/Overview/Inventory/InventoryTableBmcManager.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/_sila/Overview/Inventory/InventoryTableBmcManager.vue')
-rw-r--r--src/views/_sila/Overview/Inventory/InventoryTableBmcManager.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/views/_sila/Overview/Inventory/InventoryTableBmcManager.vue b/src/views/_sila/Overview/Inventory/InventoryTableBmcManager.vue
index 5fb23bfd..e73dab05 100644
--- a/src/views/_sila/Overview/Inventory/InventoryTableBmcManager.vue
+++ b/src/views/_sila/Overview/Inventory/InventoryTableBmcManager.vue
@@ -36,7 +36,7 @@
v-model="row.item.identifyLed"
name="switch"
switch
- :disabled="$store.getters['authentication/role'] === 'ReadOnly'"
+ :disabled="isNotAdmin"
@change="toggleIdentifyLedValue(row.item)"
>
<span v-if="row.item.identifyLed">
@@ -209,6 +209,9 @@ export default {
};
},
computed: {
+ isNotAdmin() {
+ return this.$store.getters['authentication/role'] === 'ReadOnly';
+ },
bmc() {
return this.$store.getters['bmc/bmc'];
},