summaryrefslogtreecommitdiff
path: root/src/views/_sila/Overview/Inventory/InventoryServiceIndicator.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/_sila/Overview/Inventory/InventoryServiceIndicator.vue')
-rw-r--r--src/views/_sila/Overview/Inventory/InventoryServiceIndicator.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/views/_sila/Overview/Inventory/InventoryServiceIndicator.vue b/src/views/_sila/Overview/Inventory/InventoryServiceIndicator.vue
index 7f0c9030..d823f40a 100644
--- a/src/views/_sila/Overview/Inventory/InventoryServiceIndicator.vue
+++ b/src/views/_sila/Overview/Inventory/InventoryServiceIndicator.vue
@@ -23,7 +23,7 @@
v-model="systems.locationIndicatorActive"
data-test-id="inventoryService-toggle-identifyLed"
switch
- :disabled="$store.getters['authentication/role'] === 'ReadOnly'"
+ :disabled="isNotAdmin"
@change="toggleIdentifyLedSwitch"
>
<span v-if="systems.locationIndicatorActive">
@@ -46,6 +46,9 @@ export default {
components: { PageSection },
mixins: [BVToastMixin],
computed: {
+ isNotAdmin() {
+ return this.$store.getters['authentication/role'] === 'ReadOnly';
+ },
systems() {
let systemData = this.$store.getters['system/systems'][0];
return systemData ? systemData : {};