diff options
Diffstat (limited to 'src/views/Settings/Network/Network.vue')
-rw-r--r-- | src/views/Settings/Network/Network.vue | 23 |
1 files changed, 13 insertions, 10 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(); }, |