diff options
Diffstat (limited to 'src/views/Settings')
-rw-r--r-- | src/views/Settings/DateTime/DateTime.vue | 4 | ||||
-rw-r--r-- | src/views/Settings/Network/Network.vue | 23 | ||||
-rw-r--r-- | src/views/Settings/Network/TableIpv4.vue | 2 | ||||
-rw-r--r-- | src/views/Settings/PowerRestorePolicy/PowerRestorePolicy.vue | 2 | ||||
-rw-r--r-- | src/views/Settings/SnmpAlerts/SnmpAlerts.vue | 12 |
5 files changed, 23 insertions, 20 deletions
diff --git a/src/views/Settings/DateTime/DateTime.vue b/src/views/Settings/DateTime/DateTime.vue index f5e063d1..a3fec362 100644 --- a/src/views/Settings/DateTime/DateTime.vue +++ b/src/views/Settings/DateTime/DateTime.vue @@ -297,7 +297,7 @@ export default { }, bmcTime() { this.form.manual.date = this.$options.filters.formatDate( - this.$store.getters['global/bmcTime'] + this.$store.getters['global/bmcTime'], ); this.form.manual.time = this.$options.filters .formatTime(this.$store.getters['global/bmcTime']) @@ -408,7 +408,7 @@ export default { parseInt(datesArray[1]) - 1, // User input month datesArray[2], // User input day timeArray[0], // User input hour - timeArray[1] // User input minute + timeArray[1], // User input minute ); return new Date(utcDate); }, diff --git a/src/views/Settings/Network/Network.vue b/src/views/Settings/Network/Network.vue index 2abbcd7a..f731c25f 100644 --- a/src/views/Settings/Network/Network.vue +++ b/src/views/Settings/Network/Network.vue @@ -117,24 +117,27 @@ export default { }, methods: { getModalInfo() { - this.defaultGateway = this.$store.getters[ - 'network/globalNetworkSettings' - ][this.tabIndex].defaultGateway; + this.defaultGateway = + this.$store.getters['network/globalNetworkSettings'][ + this.tabIndex + ].defaultGateway; - this.currentHostname = this.$store.getters[ - 'network/globalNetworkSettings' - ][this.tabIndex].hostname; + this.currentHostname = + this.$store.getters['network/globalNetworkSettings'][ + this.tabIndex + ].hostname; - this.currentMacAddress = this.$store.getters[ - 'network/globalNetworkSettings' - ][this.tabIndex].macAddress; + this.currentMacAddress = + this.$store.getters['network/globalNetworkSettings'][ + this.tabIndex + ].macAddress; }, getTabIndex(selectedIndex) { this.tabIndex = selectedIndex; this.$store.dispatch('network/setSelectedTabIndex', this.tabIndex); this.$store.dispatch( 'network/setSelectedTabId', - this.ethernetData[selectedIndex].Id + this.ethernetData[selectedIndex].Id, ); this.getModalInfo(); }, diff --git a/src/views/Settings/Network/TableIpv4.vue b/src/views/Settings/Network/TableIpv4.vue index 8f10d625..8bd21cb9 100644 --- a/src/views/Settings/Network/TableIpv4.vue +++ b/src/views/Settings/Network/TableIpv4.vue @@ -224,7 +224,7 @@ export default { : this.$t('global.action.disable'), okVariant: 'danger', cancelTitle: this.$t('global.action.cancel'), - } + }, ) .then((dhcpEnableConfirmed) => { if (dhcpEnableConfirmed) { diff --git a/src/views/Settings/PowerRestorePolicy/PowerRestorePolicy.vue b/src/views/Settings/PowerRestorePolicy/PowerRestorePolicy.vue index 06e30f3e..9f206296 100644 --- a/src/views/Settings/PowerRestorePolicy/PowerRestorePolicy.vue +++ b/src/views/Settings/PowerRestorePolicy/PowerRestorePolicy.vue @@ -78,7 +78,7 @@ export default { this.$store .dispatch( 'powerPolicy/setPowerRestorePolicy', - this.policyValue || this.currentPowerRestorePolicy + this.policyValue || this.currentPowerRestorePolicy, ) .then((message) => this.successToast(message)) .catch(({ message }) => this.errorToast(message)) diff --git a/src/views/Settings/SnmpAlerts/SnmpAlerts.vue b/src/views/Settings/SnmpAlerts/SnmpAlerts.vue index 8a9b8e73..528033be 100644 --- a/src/views/Settings/SnmpAlerts/SnmpAlerts.vue +++ b/src/views/Settings/SnmpAlerts/SnmpAlerts.vue @@ -209,7 +209,7 @@ export default { title: this.$tc('pageSnmpAlerts.modal.deleteSnmpDestinationTitle'), okTitle: this.$tc('pageSnmpAlerts.deleteDestination'), cancelTitle: this.$t('global.action.cancel'), - } + }, ) .then((deleteConfirmed) => { if (deleteConfirmed) { @@ -231,19 +231,19 @@ export default { .msgBoxConfirm( this.$tc( 'pageSnmpAlerts.modal.batchDeleteConfirmMessage', - this.selectedRows.length + this.selectedRows.length, ), { title: this.$tc( 'pageSnmpAlerts.modal.deleteSnmpDestinationTitle', - this.selectedRows.length + this.selectedRows.length, ), okTitle: this.$tc( 'pageSnmpAlerts.deleteDestination', - this.selectedRows.length + this.selectedRows.length, ), cancelTitle: this.$t('global.action.cancel'), - } + }, ) .then((deleteConfirmed) => { if (deleteConfirmed) { @@ -251,7 +251,7 @@ export default { this.$store .dispatch( 'snmpAlerts/deleteMultipleDestinations', - this.selectedRows + this.selectedRows, ) .then((messages) => { messages.forEach(({ type, message }) => { |