From 094f8589dbf059a7cecdc46e9a1299735c001e51 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Thu, 8 Jul 2021 21:30:37 +0100 Subject: [PATCH] :bug: Fixes bugs caused by the upgrade of vue-material-tabs --- .../Configuration/ConfigContainer.vue | 55 +++++++++++-------- 1 file changed, 31 insertions(+), 24 deletions(-) diff --git a/src/components/Configuration/ConfigContainer.vue b/src/components/Configuration/ConfigContainer.vue index f33151ab..7548ba7d 100644 --- a/src/components/Configuration/ConfigContainer.vue +++ b/src/components/Configuration/ConfigContainer.vue @@ -9,11 +9,11 @@ Download Config - - @@ -119,18 +119,10 @@ export default { IconAbout, }, methods: { - /* Seletcs the edit tab of the tab view */ - goToEdit() { - const itemToSelect = this.$refs.tabView.navItems[2]; - this.$refs.tabView.activeTabItem({ tabItem: itemToSelect, byUser: true }); - }, - goToMetaEdit() { - const itemToSelect = this.$refs.tabView.navItems[3]; - this.$refs.tabView.activeTabItem({ tabItem: itemToSelect, byUser: true }); - }, - goToCustomCss() { - const itemToSelect = this.$refs.tabView.navItems[3]; - this.$refs.tabView.activeTabItem({ tabItem: itemToSelect, byUser: true }); + /* Progamatically navigates to a given tab by index */ + navigateToTab(tabInxex) { + const itemToSelect = this.$refs.tabView.navItems[tabInxex]; + this.$refs.tabView.activeTabItem(itemToSelect); }, openRebuildAppModal() { this.$modal.show(modalNames.REBUILD_APP); @@ -237,7 +229,7 @@ div.code-container { } .yaml-action-buttons { position: absolute; - top: 0.5rem; + top: 1.5rem; right: 0.5rem; display: flex; flex-direction: column; @@ -334,35 +326,50 @@ p.small-screen-note {