summaryrefslogtreecommitdiff
path: root/src/views/Settings/Network
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/Settings/Network')
-rw-r--r--src/views/Settings/Network/Network.vue23
-rw-r--r--src/views/Settings/Network/TableIpv4.vue2
2 files changed, 14 insertions, 11 deletions
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) {