summaryrefslogtreecommitdiff
path: root/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/Control/ServerPowerOperations/ServerPowerOperations.vue')
-rw-r--r--src/views/Control/ServerPowerOperations/ServerPowerOperations.vue9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue b/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue
index d81510bf..4ea77655 100644
--- a/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue
+++ b/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue
@@ -49,7 +49,7 @@
</b-col>
</b-row>
<b-row>
- <b-col sm="8" md="6" xl="4">
+ <b-col v-if="hasBootSourceOptions" sm="8" md="6" xl="4">
<page-section
:section-title="$t('pageServerPowerOperations.hostOsBootSettings')"
>
@@ -182,6 +182,12 @@ export default {
oneTimeBootEnabled() {
return this.$store.getters['hostBootSettings/overrideEnabled'];
},
+ hasBootSourceOptions() {
+ let bootOptions = this.$store.getters[
+ 'hostBootSettings/bootSourceOptions'
+ ];
+ return bootOptions.length !== 0;
+ },
},
created() {
this.startLoader();
@@ -191,6 +197,7 @@ export default {
);
});
Promise.all([
+ this.$store.dispatch('hostBootSettings/getBootSettings'),
this.$store.dispatch('controls/getLastPowerOperationTime'),
bootSettingsPromise,
]).finally(() => this.endLoader());