summaryrefslogtreecommitdiff
path: root/src/views/_sila/Overview/Inventory/InventoryTableSystem.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/_sila/Overview/Inventory/InventoryTableSystem.vue')
-rw-r--r--src/views/_sila/Overview/Inventory/InventoryTableSystem.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/views/_sila/Overview/Inventory/InventoryTableSystem.vue b/src/views/_sila/Overview/Inventory/InventoryTableSystem.vue
index 286df969..e6929987 100644
--- a/src/views/_sila/Overview/Inventory/InventoryTableSystem.vue
+++ b/src/views/_sila/Overview/Inventory/InventoryTableSystem.vue
@@ -35,7 +35,7 @@
v-model="item.locationIndicatorActive"
data-test-id="inventorySystem-toggle-identifyLed"
switch
- :disabled="$store.getters['authentication/role'] === 'ReadOnly'"
+ :disabled="isNotAdmin"
@change="toggleIdentifyLedSwitch"
>
<span v-if="item.locationIndicatorActive">
@@ -203,6 +203,9 @@ export default {
};
},
computed: {
+ isNotAdmin() {
+ return this.$store.getters['authentication/role'] === 'ReadOnly';
+ },
systems() {
return this.$store.getters['system/systems'];
},