diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-09-05 09:39:12 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-09-05 09:39:12 +0300 |
commit | fec1602b12c66e7675f4020d544886871cf5f5c9 (patch) | |
tree | 40935a9ae21ae538351bdf73f33669c67a65932e /src | |
parent | 32ce54d76de7de9dc4a23ad83da3afb62546faf8 (diff) | |
download | webui-vue-fec1602b12c66e7675f4020d544886871cf5f5c9.tar.xz |
SILABMC-289: add Operator rights for KeyClear
Diffstat (limited to 'src')
-rw-r--r-- | src/views/_sila/Operations/KeyClear/KeyClear.vue | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/views/_sila/Operations/KeyClear/KeyClear.vue b/src/views/_sila/Operations/KeyClear/KeyClear.vue index 70154aaf..4b797e1d 100644 --- a/src/views/_sila/Operations/KeyClear/KeyClear.vue +++ b/src/views/_sila/Operations/KeyClear/KeyClear.vue @@ -26,7 +26,10 @@ <b-form-radio class="mb-1" value="NONE" - :disabled="$store.getters['authentication/role'] === 'ReadOnly'" + :disabled=" + $store.getters['authentication/role'] === 'ReadOnly' || + $store.getters['authentication/role'] === 'Operator' + " > {{ $t('pageKeyClear.form.none') }} </b-form-radio> @@ -36,7 +39,10 @@ <b-form-radio class="mb-1" value="ALL" - :disabled="$store.getters['authentication/role'] === 'ReadOnly'" + :disabled=" + $store.getters['authentication/role'] === 'ReadOnly' || + $store.getters['authentication/role'] === 'Operator' + " > {{ $t('pageKeyClear.form.clearAllLabel') }} </b-form-radio> @@ -46,7 +52,10 @@ <b-form-radio class="mb-1" value="POWERVM_SYSKEY" - :disabled="$store.getters['authentication/role'] === 'ReadOnly'" + :disabled=" + $store.getters['authentication/role'] === 'ReadOnly' || + $store.getters['authentication/role'] === 'Operator' + " > {{ $t('pageKeyClear.form.clearHypervisorSystemKeyLabel') }} </b-form-radio> @@ -67,7 +76,10 @@ type="submit" variant="primary" data-test-id="keyClear-button-submit" - :disabled="$store.getters['authentication/role'] === 'ReadOnly'" + :disabled=" + $store.getters['authentication/role'] === 'ReadOnly' || + $store.getters['authentication/role'] === 'Operator' + " > {{ $t('pageKeyClear.form.clear') }} </b-button> |