summaryrefslogtreecommitdiff
path: root/src/views/Configuration
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/Configuration')
-rw-r--r--src/views/Configuration/Firmware/Firmware.vue14
-rw-r--r--src/views/Configuration/Firmware/FirmwareAlertServerPower.vue4
-rw-r--r--src/views/Configuration/Firmware/FirmwareFormUpdate.vue4
3 files changed, 11 insertions, 11 deletions
diff --git a/src/views/Configuration/Firmware/Firmware.vue b/src/views/Configuration/Firmware/Firmware.vue
index e27c8a26..a2acb9b0 100644
--- a/src/views/Configuration/Firmware/Firmware.vue
+++ b/src/views/Configuration/Firmware/Firmware.vue
@@ -3,7 +3,7 @@
<page-title />
<alerts-server-power
v-if="isServerPowerOffRequired"
- :is-host-off="isHostOff"
+ :is-server-off="isServerOff"
/>
<!-- Firmware cards -->
@@ -25,7 +25,7 @@
<b-col sm="8" md="6" xl="4">
<!-- Update form -->
<form-update
- :is-host-off="isHostOff"
+ :is-server-off="isServerOff"
:is-page-disabled="isPageDisabled"
/>
</b-col>
@@ -67,18 +67,18 @@ 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;
},
isSingleFileUploadEnabled() {
return this.$store.getters['firmware/isSingleFileUploadEnabled'];
},
isPageDisabled() {
if (this.isServerPowerOffRequired) {
- return !this.isHostOff || this.loading || this.isOperationInProgress;
+ return !this.isServerOff || this.loading || this.isOperationInProgress;
}
return this.loading || this.isOperationInProgress;
},
diff --git a/src/views/Configuration/Firmware/FirmwareAlertServerPower.vue b/src/views/Configuration/Firmware/FirmwareAlertServerPower.vue
index 04713115..2a3bcba1 100644
--- a/src/views/Configuration/Firmware/FirmwareAlertServerPower.vue
+++ b/src/views/Configuration/Firmware/FirmwareAlertServerPower.vue
@@ -8,7 +8,7 @@
</p>
</alert>
<!-- Power off server warning alert -->
- <alert v-else-if="!isHostOff" variant="warning" class="mb-5">
+ <alert v-else-if="!isServerOff" variant="warning" class="mb-5">
<p class="mb-0">
{{ $t('pageFirmware.alert.serverMustBePoweredOffTo') }}
</p>
@@ -36,7 +36,7 @@ import Alert from '@/components/Global/Alert';
export default {
components: { Alert },
props: {
- isHostOff: {
+ isServerOff: {
required: true,
type: Boolean,
},
diff --git a/src/views/Configuration/Firmware/FirmwareFormUpdate.vue b/src/views/Configuration/Firmware/FirmwareFormUpdate.vue
index 9f67e8d0..702352f2 100644
--- a/src/views/Configuration/Firmware/FirmwareFormUpdate.vue
+++ b/src/views/Configuration/Firmware/FirmwareFormUpdate.vue
@@ -69,7 +69,7 @@
{{ $t('pageFirmware.form.updateFirmware.startUpdate') }}
</b-btn>
<alert
- v-if="isServerPowerOffRequired && !isHostOff"
+ v-if="isServerPowerOffRequired && !isServerOff"
variant="warning"
:small="true"
class="mt-4"
@@ -108,7 +108,7 @@ export default {
type: Boolean,
default: false,
},
- isHostOff: {
+ isServerOff: {
required: true,
type: Boolean,
},