summaryrefslogtreecommitdiff
path: root/src/views/Control
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/Control')
-rw-r--r--src/views/Control/FactoryReset/FactoryResetModal.vue12
-rw-r--r--src/views/Control/Kvm/KvmConsole.vue8
-rw-r--r--src/views/Control/SerialOverLan/SerialOverLanConsole.vue14
-rw-r--r--src/views/Control/ServerPowerOperations/BootSettings.vue12
-rw-r--r--src/views/Control/ServerPowerOperations/ServerPowerOperations.vue30
5 files changed, 38 insertions, 38 deletions
diff --git a/src/views/Control/FactoryReset/FactoryResetModal.vue b/src/views/Control/FactoryReset/FactoryResetModal.vue
index bf92b173..170bf284 100644
--- a/src/views/Control/FactoryReset/FactoryResetModal.vue
+++ b/src/views/Control/FactoryReset/FactoryResetModal.vue
@@ -22,7 +22,7 @@
</ul>
<!-- Warning message -->
- <template v-if="!isHostOff">
+ <template v-if="!isServerOff">
<p class="d-flex mb-2">
<status-icon status="danger" />
<span id="reset-to-default-warning" class="ml-1">
@@ -82,17 +82,17 @@ export default {
};
},
computed: {
- hostStatus() {
- return this.$store.getters['global/hostStatus'];
+ serverStatus() {
+ return this.$store.getters['global/serverStatus'];
},
- isHostOff() {
- return this.hostStatus === 'off' ? true : false;
+ isServerOff() {
+ return this.serverStatus === 'off' ? true : false;
},
},
validations: {
confirm: {
mustBeTrue: function (value) {
- return this.isHostOff || value === true;
+ return this.isServerOff || value === true;
},
},
},
diff --git a/src/views/Control/Kvm/KvmConsole.vue b/src/views/Control/Kvm/KvmConsole.vue
index d844b4b8..d7ec31e0 100644
--- a/src/views/Control/Kvm/KvmConsole.vue
+++ b/src/views/Control/Kvm/KvmConsole.vue
@@ -8,8 +8,8 @@
{{ $t('pageKvm.status') }}:
</dt>
<dd class="d-inline">
- <status-icon :status="hostStatusIcon" />
- <span class="d-none d-md-inline"> {{ hostStatus }}</span>
+ <status-icon :status="serverStatusIcon" />
+ <span class="d-none d-md-inline"> {{ serverStatus }}</span>
</dd>
</dl>
</b-col>
@@ -72,7 +72,7 @@ export default {
};
},
computed: {
- hostStatusIcon() {
+ serverStatusIcon() {
if (this.status === Connected) {
return 'success';
} else if (this.status === Disconnected) {
@@ -80,7 +80,7 @@ export default {
}
return 'secondary';
},
- hostStatus() {
+ serverStatus() {
if (this.status === Connected) {
return this.$t('pageKvm.connected');
} else if (this.status === Disconnected) {
diff --git a/src/views/Control/SerialOverLan/SerialOverLanConsole.vue b/src/views/Control/SerialOverLan/SerialOverLanConsole.vue
index 6c16c551..0bda43db 100644
--- a/src/views/Control/SerialOverLan/SerialOverLanConsole.vue
+++ b/src/views/Control/SerialOverLan/SerialOverLanConsole.vue
@@ -7,7 +7,7 @@
{{ $t('pageSerialOverLan.status') }}:
</dt>
<dd class="d-inline">
- <status-icon :status="hostStatusIcon" /> {{ connectionStatus }}
+ <status-icon :status="serverStatusIcon" /> {{ connectionStatus }}
</dd>
</dl>
</b-col>
@@ -49,20 +49,20 @@ export default {
};
},
computed: {
- hostStatus() {
- return this.$store.getters['global/hostStatus'];
+ serverStatus() {
+ return this.$store.getters['global/serverStatus'];
},
- hostStatusIcon() {
- return this.hostStatus === 'on' ? 'success' : 'danger';
+ serverStatusIcon() {
+ return this.serverStatus === 'on' ? 'success' : 'danger';
},
connectionStatus() {
- return this.hostStatus === 'on'
+ return this.serverStatus === 'on'
? this.$t('pageSerialOverLan.connected')
: this.$t('pageSerialOverLan.disconnected');
},
},
created() {
- this.$store.dispatch('global/getHostStatus');
+ this.$store.dispatch('global/getServerStatus');
},
mounted() {
this.openTerminal();
diff --git a/src/views/Control/ServerPowerOperations/BootSettings.vue b/src/views/Control/ServerPowerOperations/BootSettings.vue
index eda4edaf..efd8d347 100644
--- a/src/views/Control/ServerPowerOperations/BootSettings.vue
+++ b/src/views/Control/ServerPowerOperations/BootSettings.vue
@@ -60,14 +60,14 @@ export default {
data() {
return {
form: {
- bootOption: this.$store.getters['hostBootSettings/bootSource'],
- oneTimeBoot: this.$store.getters['hostBootSettings/overrideEnabled'],
- tpmPolicyOn: this.$store.getters['hostBootSettings/tpmEnabled'],
+ bootOption: this.$store.getters['serverBootSettings/bootSource'],
+ oneTimeBoot: this.$store.getters['serverBootSettings/overrideEnabled'],
+ tpmPolicyOn: this.$store.getters['serverBootSettings/tpmEnabled'],
},
};
},
computed: {
- ...mapState('hostBootSettings', [
+ ...mapState('serverBootSettings', [
'bootSourceOptions',
'bootSource',
'overrideEnabled',
@@ -96,7 +96,7 @@ export default {
},
created() {
this.$store
- .dispatch('hostBootSettings/getTpmPolicy')
+ .dispatch('serverBootSettings/getTpmPolicy')
.finally(() =>
this.$root.$emit('server-power-operations-boot-settings-complete')
);
@@ -122,7 +122,7 @@ export default {
settings = { bootSource, overrideEnabled, tpmEnabled };
this.$store
- .dispatch('hostBootSettings/saveSettings', settings)
+ .dispatch('serverBootSettings/saveSettings', settings)
.then((message) => this.successToast(message))
.catch(({ message }) => this.errorToast(message))
.finally(() => {
diff --git a/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue b/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue
index 4ea77655..9e030837 100644
--- a/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue
+++ b/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue
@@ -9,15 +9,15 @@
<b-row>
<b-col>
<dl>
- <dt>{{ $t('pageServerPowerOperations.hostStatus') }}</dt>
+ <dt>{{ $t('pageServerPowerOperations.serverStatus') }}</dt>
<dd
- v-if="hostStatus === 'on'"
+ v-if="serverStatus === 'on'"
data-test-id="powerServerOps-text-hostStatus"
>
{{ $t('global.status.on') }}
</dd>
<dd
- v-else-if="hostStatus === 'off'"
+ v-else-if="serverStatus === 'off'"
data-test-id="powerServerOps-text-hostStatus"
>
{{ $t('global.status.off') }}
@@ -51,7 +51,7 @@
<b-row>
<b-col v-if="hasBootSourceOptions" sm="8" md="6" xl="4">
<page-section
- :section-title="$t('pageServerPowerOperations.hostOsBootSettings')"
+ :section-title="$t('pageServerPowerOperations.serverBootSettings')"
>
<boot-settings />
</page-section>
@@ -68,7 +68,7 @@
{{ $t('pageServerPowerOperations.operationInProgress') }}
</alert>
</template>
- <template v-else-if="hostStatus === 'off'">
+ <template v-else-if="serverStatus === 'off'">
<b-button
variant="primary"
data-test-id="serverPowerOperations-button-powerOn"
@@ -170,8 +170,8 @@ export default {
};
},
computed: {
- hostStatus() {
- return this.$store.getters['global/hostStatus'];
+ serverStatus() {
+ return this.$store.getters['global/serverStatus'];
},
isOperationInProgress() {
return this.$store.getters['controls/isOperationInProgress'];
@@ -180,11 +180,11 @@ export default {
return this.$store.getters['controls/lastPowerOperationTime'];
},
oneTimeBootEnabled() {
- return this.$store.getters['hostBootSettings/overrideEnabled'];
+ return this.$store.getters['serverBootSettings/overrideEnabled'];
},
hasBootSourceOptions() {
let bootOptions = this.$store.getters[
- 'hostBootSettings/bootSourceOptions'
+ 'serverBootSettings/bootSourceOptions'
];
return bootOptions.length !== 0;
},
@@ -197,14 +197,14 @@ export default {
);
});
Promise.all([
- this.$store.dispatch('hostBootSettings/getBootSettings'),
+ this.$store.dispatch('serverBootSettings/getBootSettings'),
this.$store.dispatch('controls/getLastPowerOperationTime'),
bootSettingsPromise,
]).finally(() => this.endLoader());
},
methods: {
powerOn() {
- this.$store.dispatch('controls/hostPowerOn');
+ this.$store.dispatch('controls/serverPowerOn');
},
rebootServer() {
const modalMessage = this.$t(
@@ -220,13 +220,13 @@ export default {
this.$bvModal
.msgBoxConfirm(modalMessage, modalOptions)
.then((confirmed) => {
- if (confirmed) this.$store.dispatch('controls/hostSoftReboot');
+ if (confirmed) this.$store.dispatch('controls/serverSoftReboot');
});
} else if (this.form.rebootOption === 'immediate') {
this.$bvModal
.msgBoxConfirm(modalMessage, modalOptions)
.then((confirmed) => {
- if (confirmed) this.$store.dispatch('controls/hostHardReboot');
+ if (confirmed) this.$store.dispatch('controls/serverHardReboot');
});
}
},
@@ -244,14 +244,14 @@ export default {
this.$bvModal
.msgBoxConfirm(modalMessage, modalOptions)
.then((confirmed) => {
- if (confirmed) this.$store.dispatch('controls/hostSoftPowerOff');
+ if (confirmed) this.$store.dispatch('controls/serverSoftPowerOff');
});
}
if (this.form.shutdownOption === 'immediate') {
this.$bvModal
.msgBoxConfirm(modalMessage, modalOptions)
.then((confirmed) => {
- if (confirmed) this.$store.dispatch('controls/hostHardPowerOff');
+ if (confirmed) this.$store.dispatch('controls/serverHardPowerOff');
});
}
},