summaryrefslogtreecommitdiff
path: root/src/views/_sila/Motherboard/Dynamic/MotherboardTemp.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/_sila/Motherboard/Dynamic/MotherboardTemp.vue')
-rw-r--r--src/views/_sila/Motherboard/Dynamic/MotherboardTemp.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/views/_sila/Motherboard/Dynamic/MotherboardTemp.vue b/src/views/_sila/Motherboard/Dynamic/MotherboardTemp.vue
index fc962f11..6d4c15b7 100644
--- a/src/views/_sila/Motherboard/Dynamic/MotherboardTemp.vue
+++ b/src/views/_sila/Motherboard/Dynamic/MotherboardTemp.vue
@@ -11,6 +11,7 @@
<b-form-group :label="$t('pageMotherboard.labels.warning')">
<b-form-input
v-model.number="warning"
+ :disabled="$store.getters['authentication/role'] === 'ReadOnly'"
type="number"
:min="1"
:max="100"
@@ -31,7 +32,9 @@
<b-button
variant="primary"
style="height: 35px"
- :disabled="loading"
+ :disabled="
+ loading || $store.getters['authentication/role'] === 'ReadOnly'
+ "
@click="saveLimit"
>
{{ $t('global.action.save') }}