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.vue10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue b/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue
index 01fc661e..441217f2 100644
--- a/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue
+++ b/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue
@@ -108,11 +108,12 @@ import PageTitle from '../../../components/Global/PageTitle';
import PageSection from '../../../components/Global/PageSection';
import BVToastMixin from '../../../components/Mixins/BVToastMixin';
import BootSettings from './BootSettings';
+import LoadingBarMixin from '@/components/Mixins/LoadingBarMixin';
export default {
name: 'ServerPowerOperations',
components: { PageTitle, PageSection, BootSettings },
- mixins: [BVToastMixin],
+ mixins: [BVToastMixin, LoadingBarMixin],
data() {
return {
form: {
@@ -132,6 +133,13 @@ export default {
return this.$store.getters['hostBootSettings/overrideEnabled'];
}
},
+ created() {
+ this.startLoader();
+ },
+ beforeRouteLeave(to, from, next) {
+ this.hideLoader();
+ next();
+ },
methods: {
powerOn() {
this.$store.dispatch('controls/hostPowerOn');