Fix tab order (#255)

* Export array from domain sections

* Export array from global sections

* Export array from setup sections
This commit is contained in:
Matt (IPv4) Cowley
2021-04-21 21:46:39 +01:00
committed by GitHub
parent e49ec084ac
commit 47371a1216
6 changed files with 41 additions and 39 deletions

View File

@@ -56,10 +56,9 @@ THE SOFTWARE.
<script>
import analytics from '../util/analytics';
import isChanged from '../util/is_changed';
import * as Sections from './global_sections';
import Sections from './global_sections';
const tabs = Object.values(Sections);
const delegated = tabs.reduce((prev, tab) => {
const delegated = Sections.reduce((prev, tab) => {
prev[tab.key] = tab.delegated;
return prev;
}, {});
@@ -72,8 +71,8 @@ THE SOFTWARE.
},
data() {
return {
active: tabs[0].key,
tabs,
active: Sections[0].key,
tabs: Sections,
};
},
computed: {