diff options
Diffstat (limited to 'src/views/_sila/Operations/RebootBmc/RebootBmc.vue')
-rw-r--r-- | src/views/_sila/Operations/RebootBmc/RebootBmc.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/views/_sila/Operations/RebootBmc/RebootBmc.vue b/src/views/_sila/Operations/RebootBmc/RebootBmc.vue index f332de88..ff0fb73a 100644 --- a/src/views/_sila/Operations/RebootBmc/RebootBmc.vue +++ b/src/views/_sila/Operations/RebootBmc/RebootBmc.vue @@ -23,7 +23,7 @@ variant="primary" class="d-block mt-5" data-test-id="rebootBmc-button-reboot" - :disabled="$store.getters['authentication/role'] === 'ReadOnly'" + :disabled="isNotAdmin" @click="onClick" > {{ $t('pageRebootBmc.rebootBmc') }} @@ -49,6 +49,9 @@ export default { next(); }, computed: { + isNotAdmin() { + return this.$store.getters['authentication/role'] === 'ReadOnly'; + }, lastBmcRebootTime() { return this.$store.getters['controls/lastBmcRebootTime']; }, |