diff options
Diffstat (limited to 'src/views/_sila/Overview/OverviewInventory.vue')
-rw-r--r-- | src/views/_sila/Overview/OverviewInventory.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/views/_sila/Overview/OverviewInventory.vue b/src/views/_sila/Overview/OverviewInventory.vue index 8cbf4169..02df5860 100644 --- a/src/views/_sila/Overview/OverviewInventory.vue +++ b/src/views/_sila/Overview/OverviewInventory.vue @@ -13,7 +13,7 @@ v-model="systems.locationIndicatorActive" data-test-id="overviewInventory-checkbox-identifyLed" switch - :disabled="$store.getters['authentication/role'] === 'ReadOnly'" + :disabled="isNotAdmin" @change="toggleIdentifyLedSwitch" > <span v-if="systems.locationIndicatorActive"> @@ -37,6 +37,9 @@ export default { OverviewCard, }, computed: { + isNotAdmin() { + return this.$store.getters['authentication/role'] === 'ReadOnly'; + }, systems() { let systemData = this.$store.getters['system/systems'][0]; return systemData ? systemData : {}; |