summaryrefslogtreecommitdiff
path: root/src/views/_sila/Motherboard
diff options
context:
space:
mode:
authorVitalii Lysak <v.lysak@dunice.net>2022-08-22 15:10:26 +0300
committerVitalii Lysak <v.lysak@dunice.net>2022-08-22 15:10:26 +0300
commita9cd79d13938dc0e43fd443e3d2deb7367726403 (patch)
treecde7bff3d63a2c8812dc56b0da8c050214fbb348 /src/views/_sila/Motherboard
parentf1f3ec7b66dd0636138840ea5b7032d3c73d01a9 (diff)
downloadwebui-vue-a9cd79d13938dc0e43fd443e3d2deb7367726403.tar.xz
SILABMC-275: add readonly for dynamic page
Diffstat (limited to 'src/views/_sila/Motherboard')
-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') }}