summaryrefslogtreecommitdiff
path: root/src/env/components/FirmwareSingleImage/FirmwareSingleImage.vue
diff options
context:
space:
mode:
authorDerick Montague <derick.montague@ibm.com>2020-10-22 00:20:00 +0300
committerDerick Montague <derick.montague@ibm.com>2020-11-03 19:47:51 +0300
commit602e98aa32f82fd3b0c3d250c7cc1f8da971db24 (patch)
tree2894194868ff987718a8b19f112b8106d662aa83 /src/env/components/FirmwareSingleImage/FirmwareSingleImage.vue
parent47165201c79b3d2c4ccc62a49a9c75d038ee8fe6 (diff)
downloadwebui-vue-602e98aa32f82fd3b0c3d250c7cc1f8da971db24.tar.xz
Update linting packages to use latest
- 99% of changes were small syntax changes that were changed by the lint command. There were a couple of small manual changes to meet the property order patterns established as part of the vue:recommended guidelines. There are rules that were set from errors to warnings and new stories are being opened to address those issues. Testing: - Successfully ran npm run serve - Successfully ran npm run lint - Verified functionality works as expected, e.g. success and failure use cases - Resolved any JavaScript errors thrown to the console Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: Ie082f31c73ccbe8a60afa8f88a9ef6dbf33d9fd2
Diffstat (limited to 'src/env/components/FirmwareSingleImage/FirmwareSingleImage.vue')
-rw-r--r--src/env/components/FirmwareSingleImage/FirmwareSingleImage.vue50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/env/components/FirmwareSingleImage/FirmwareSingleImage.vue b/src/env/components/FirmwareSingleImage/FirmwareSingleImage.vue
index 3ad717e5..03f5af4c 100644
--- a/src/env/components/FirmwareSingleImage/FirmwareSingleImage.vue
+++ b/src/env/components/FirmwareSingleImage/FirmwareSingleImage.vue
@@ -13,7 +13,7 @@
{{ $t('pageFirmware.alert.serverShutdownRequiredBeforeUpdate') }}
</p>
{{ $t('pageFirmware.alert.serverShutdownRequiredInfo') }}
- <template v-slot:action>
+ <template #action>
<b-btn variant="link" class="text-nowrap" @click="onClickShutDown">
{{ $t('pageFirmware.alert.shutDownServer') }}
</b-btn>
@@ -26,7 +26,7 @@
<b-card-group deck>
<!-- Current FW -->
<b-card header-bg-variant="success">
- <template v-slot:header>
+ <template #header>
<dl class="mb-0">
<dt>{{ $t('pageFirmware.current') }}</dt>
<dd class="mb-0">{{ systemFirmwareVersion }}</dd>
@@ -58,7 +58,7 @@
<!-- Backup FW -->
<b-card>
- <template v-slot:header>
+ <template #header>
<dl class="mb-0">
<dt>{{ $t('pageFirmware.backup') }}</dt>
<dd class="mb-0">{{ backupFirmwareVersion }}</dd>
@@ -226,7 +226,7 @@ export default {
ModalRebootBackup,
ModalUpload,
PageSection,
- PageTitle
+ PageTitle,
},
mixins: [BVToastMixin, LoadingBarMixin, VuelidateMixin],
data() {
@@ -235,7 +235,7 @@ export default {
file: null,
tftpIpAddress: null,
tftpFileName: null,
- timeoutId: null
+ timeoutId: null,
};
},
computed: {
@@ -252,26 +252,26 @@ export default {
'backupFirmwareStatus',
'backupFirmwareVersion',
'isRebootFromBackupAvailable',
- 'systemFirmwareVersion'
+ 'systemFirmwareVersion',
]),
isPageDisabled() {
return !this.isHostOff || this.loading || this.isOperationInProgress;
- }
+ },
},
watch: {
- isWorkstationSelected: function() {
+ isWorkstationSelected: function () {
this.$v.$reset();
this.file = null;
this.tftpIpAddress = null;
this.tftpFileName = null;
- }
+ },
},
created() {
this.startLoader();
this.$store.dispatch('firmwareSingleImage/getUpdateServiceApplyTime');
Promise.all([
this.$store.dispatch('global/getHostStatus'),
- this.$store.dispatch('firmwareSingleImage/getFirmwareInformation')
+ this.$store.dispatch('firmwareSingleImage/getFirmwareInformation'),
]).finally(() => this.endLoader());
},
beforeRouteLeave(to, from, next) {
@@ -282,20 +282,20 @@ export default {
validations() {
return {
file: {
- required: requiredIf(function() {
+ required: requiredIf(function () {
return this.isWorkstationSelected;
- })
+ }),
},
tftpIpAddress: {
- required: requiredIf(function() {
+ required: requiredIf(function () {
return !this.isWorkstationSelected;
- })
+ }),
},
tftpFileName: {
- required: requiredIf(function() {
+ required: requiredIf(function () {
return !this.isWorkstationSelected;
- })
- }
+ }),
+ },
};
},
methods: {
@@ -315,7 +315,7 @@ export default {
dispatchWorkstationUpload() {
this.$store
.dispatch('firmwareSingleImage/uploadFirmware', this.file)
- .then(success =>
+ .then((success) =>
this.infoToast(
success,
this.$t('pageFirmware.toast.successUploadTitle')
@@ -329,11 +329,11 @@ export default {
dispatchTftpUpload() {
const data = {
address: this.tftpIpAddress,
- filename: this.tftpFileName
+ filename: this.tftpFileName,
};
this.$store
.dispatch('firmwareSingleImage/uploadFirmwareTFTP', data)
- .then(success =>
+ .then((success) =>
this.infoToast(
success,
this.$t('pageFirmware.toast.successUploadTitle')
@@ -348,7 +348,7 @@ export default {
this.setRebootTimeout();
this.$store
.dispatch('firmwareSingleImage/switchFirmwareAndReboot')
- .then(success =>
+ .then((success) =>
this.infoToast(success, this.$t('global.status.success'))
)
.catch(({ message }) => {
@@ -384,14 +384,14 @@ export default {
.msgBoxConfirm(this.$t('pageFirmware.modal.serverShutdownMessage'), {
title: this.$t('pageFirmware.modal.serverShutdownWillCauseOutage'),
okTitle: this.$t('pageFirmware.modal.shutDownServer'),
- okVariant: 'danger'
+ okVariant: 'danger',
})
- .then(shutdownConfirmed => {
+ .then((shutdownConfirmed) => {
if (shutdownConfirmed)
this.$store.dispatch('controls/hostSoftPowerOff');
});
- }
- }
+ },
+ },
};
</script>