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/Operations/ServerPowerOperations/BootSettings.vue | |
parent | 5fff754d48ec658673c11f8e593d3af4f94d79df (diff) | |
download | webui-vue-b4d1fb8b8e6e6cdb7be76a2d4fa0d2b9a84f3ba2.tar.xz |
SILABMC-236: upd layput for ReadOnly role
Diffstat (limited to 'src/views/_sila/Operations/ServerPowerOperations/BootSettings.vue')
-rw-r--r-- | src/views/_sila/Operations/ServerPowerOperations/BootSettings.vue | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/views/_sila/Operations/ServerPowerOperations/BootSettings.vue b/src/views/_sila/Operations/ServerPowerOperations/BootSettings.vue index 8d74e381..1288af0a 100644 --- a/src/views/_sila/Operations/ServerPowerOperations/BootSettings.vue +++ b/src/views/_sila/Operations/ServerPowerOperations/BootSettings.vue @@ -11,7 +11,10 @@ <b-form-select id="boot-option" v-model="form.bootOption" - :disabled="bootSourceOptions.length === 0" + :disabled=" + bootSourceOptions.length === 0 || + $store.getters['authentication/role'] === 'ReadOnly' + " :options="bootSourceOptions" @change="onChangeSelect" > @@ -20,7 +23,10 @@ <b-form-checkbox v-model="form.oneTimeBoot" class="mb-4" - :disabled="form.bootOption === 'None'" + :disabled=" + form.bootOption === 'None' || + $store.getters['authentication/role'] === 'ReadOnly' + " @change="$v.form.oneTimeBoot.$touch()" > {{ $t('pageServerPowerOperations.bootSettings.enableOneTimeBoot') }} @@ -37,12 +43,18 @@ id="tpm-required-policy" v-model="form.tpmPolicyOn" aria-describedby="tpm-required-policy-help-block" + :disabled="$store.getters['authentication/role'] === 'ReadOnly'" @change="$v.form.tpmPolicyOn.$touch()" > {{ $t('global.status.enabled') }} </b-form-checkbox> </b-form-group> - <b-button variant="primary" type="submit" class="mb-3"> + <b-button + variant="primary" + type="submit" + class="mb-3" + :disabled="$store.getters['authentication/role'] === 'ReadOnly'" + > {{ $t('global.action.save') }} </b-button> </b-form> |