diff options
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> |