diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-10 15:46:15 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-10 15:46:15 +0300 |
commit | b4d1fb8b8e6e6cdb7be76a2d4fa0d2b9a84f3ba2 (patch) | |
tree | 8806fa43f2e0d1301a89ddd4c7667d10568e531f /src/views/_sila/Settings/PowerRestorePolicy | |
parent | 5fff754d48ec658673c11f8e593d3af4f94d79df (diff) | |
download | webui-vue-b4d1fb8b8e6e6cdb7be76a2d4fa0d2b9a84f3ba2.tar.xz |
SILABMC-236: upd layput for ReadOnly role
Diffstat (limited to 'src/views/_sila/Settings/PowerRestorePolicy')
-rw-r--r-- | src/views/_sila/Settings/PowerRestorePolicy/PowerRestorePolicy.vue | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/views/_sila/Settings/PowerRestorePolicy/PowerRestorePolicy.vue b/src/views/_sila/Settings/PowerRestorePolicy/PowerRestorePolicy.vue index c357d47a..ec6f332f 100644 --- a/src/views/_sila/Settings/PowerRestorePolicy/PowerRestorePolicy.vue +++ b/src/views/_sila/Settings/PowerRestorePolicy/PowerRestorePolicy.vue @@ -9,12 +9,18 @@ v-model="currentPowerRestorePolicy" :options="options" name="power-restore-policy" + :disabled="$store.getters['authentication/role'] === 'ReadOnly'" ></b-form-radio-group> </b-form-group> </b-col> </b-row> - <b-button variant="primary" type="submit" @click="submitForm"> + <b-button + variant="primary" + type="submit" + :disabled="$store.getters['authentication/role'] === 'ReadOnly'" + @click="submitForm" + > {{ $t('global.action.saveSettings') }} </b-button> </b-container> |