diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-22 15:10:26 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-22 15:10:26 +0300 |
commit | a9cd79d13938dc0e43fd443e3d2deb7367726403 (patch) | |
tree | cde7bff3d63a2c8812dc56b0da8c050214fbb348 /src/views/_sila/Memory/Dynamic | |
parent | f1f3ec7b66dd0636138840ea5b7032d3c73d01a9 (diff) | |
download | webui-vue-a9cd79d13938dc0e43fd443e3d2deb7367726403.tar.xz |
SILABMC-275: add readonly for dynamic page
Diffstat (limited to 'src/views/_sila/Memory/Dynamic')
-rw-r--r-- | src/views/_sila/Memory/Dynamic/MemoryTemp.vue | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/views/_sila/Memory/Dynamic/MemoryTemp.vue b/src/views/_sila/Memory/Dynamic/MemoryTemp.vue index 2bc9f06f..2c890862 100644 --- a/src/views/_sila/Memory/Dynamic/MemoryTemp.vue +++ b/src/views/_sila/Memory/Dynamic/MemoryTemp.vue @@ -10,6 +10,7 @@ <b-form-group :label="$t('pageMemory.labels.warning')"> <b-form-input v-model.number="warning" + :disabled="$store.getters['authentication/role'] === 'ReadOnly'" type="number" :min="1" :max="critical" @@ -30,6 +31,7 @@ <b-form-group :label="$t('pageMemory.labels.critical')"> <b-form-input v-model.number="critical" + :disabled="$store.getters['authentication/role'] === 'ReadOnly'" type="number" :min="warning" :max="100" @@ -51,7 +53,9 @@ <b-button variant="primary" style="height: 35px" - :disabled="loading" + :disabled=" + loading || $store.getters['authentication/role'] === 'ReadOnly' + " @click="saveLimit" > {{ $t('global.action.save') }} |