diff options
Diffstat (limited to 'src/views/_sila/ResourceManagement')
-rw-r--r-- | src/views/_sila/ResourceManagement/Power.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/views/_sila/ResourceManagement/Power.vue b/src/views/_sila/ResourceManagement/Power.vue index 3c1e6412..db1104e6 100644 --- a/src/views/_sila/ResourceManagement/Power.vue +++ b/src/views/_sila/ResourceManagement/Power.vue @@ -26,6 +26,7 @@ v-model="isPowerCapFieldEnabled" data-test-id="power-checkbox-togglePowerCapField" name="power-cap-setting" + :disabled="$store.getters['authentication/role'] === 'ReadOnly'" > {{ $t('pagePower.powerCapSettingData') }} </b-form-checkbox> @@ -52,7 +53,10 @@ <b-form-input id="input-1" v-model.number="powerCapValue" - :disabled="!isPowerCapFieldEnabled" + :disabled=" + !isPowerCapFieldEnabled || + $store.getters['authentication/role'] === 'ReadOnly' + " data-test-id="power-input-powerCapValue" type="number" aria-describedby="power-help-text" @@ -75,6 +79,7 @@ variant="primary" type="submit" data-test-id="power-button-savePowerCapValue" + :disabled="$store.getters['authentication/role'] === 'ReadOnly'" > {{ $t('global.action.save') }} </b-button> |