diff options
Diffstat (limited to 'src/views')
-rw-r--r-- | src/views/_sila/Operations/FactoryReset/FactoryReset.vue | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/views/_sila/Operations/FactoryReset/FactoryReset.vue b/src/views/_sila/Operations/FactoryReset/FactoryReset.vue index 3ff14bb8..0b88ddd2 100644 --- a/src/views/_sila/Operations/FactoryReset/FactoryReset.vue +++ b/src/views/_sila/Operations/FactoryReset/FactoryReset.vue @@ -17,7 +17,10 @@ value="resetBios" aria-describedby="reset-bios" data-test-id="factoryReset-radio-resetBios" - :disabled="$store.getters['authentication/role'] === 'ReadOnly'" + :disabled=" + $store.getters['authentication/role'] === 'ReadOnly' || + $store.getters['authentication/role'] === 'Operator' + " > {{ $t('pageFactoryReset.form.resetBiosOptionLabel') }} </b-form-radio> @@ -30,7 +33,10 @@ value="resetToDefaults" aria-describedby="reset-to-defaults" data-test-id="factoryReset-radio-resetToDefaults" - :disabled="$store.getters['authentication/role'] === 'ReadOnly'" + :disabled=" + $store.getters['authentication/role'] === 'ReadOnly' || + $store.getters['authentication/role'] === 'Operator' + " > {{ $t('pageFactoryReset.form.resetToDefaultsOptionLabel') }} </b-form-radio> @@ -45,7 +51,10 @@ type="submit" variant="primary" data-test-id="factoryReset-button-submit" - :disabled="$store.getters['authentication/role'] === 'ReadOnly'" + :disabled=" + $store.getters['authentication/role'] === 'ReadOnly' || + $store.getters['authentication/role'] === 'Operator' + " > {{ $t('global.action.reset') }} </b-button> |