summaryrefslogtreecommitdiffstats
path: root/webapp/src/router.js
diff options
context:
space:
mode:
authorUdo Walter2019-04-14 17:01:47 +0200
committerUdo Walter2019-04-14 17:01:47 +0200
commitee93758a36be8791d069c2cf6ddadd4276e53f3a (patch)
tree9fa3852abc3549ca55d269f5e038b6282c130e49 /webapp/src/router.js
parent[webapp/systemlog] add copy button to table (diff)
downloadbas-ee93758a36be8791d069c2cf6ddadd4276e53f3a.tar.gz
bas-ee93758a36be8791d069c2cf6ddadd4276e53f3a.tar.xz
bas-ee93758a36be8791d069c2cf6ddadd4276e53f3a.zip
[webapp/dashboard] add categories
Diffstat (limited to 'webapp/src/router.js')
-rw-r--r--webapp/src/router.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/webapp/src/router.js b/webapp/src/router.js
index 65c3949..470ffec 100644
--- a/webapp/src/router.js
+++ b/webapp/src/router.js
@@ -1,7 +1,7 @@
import Vue from 'vue'
import Router from 'vue-router'
import DashboardPage from '@/components/DashboardPage'
-import dashboardModules from '@/config/dashboard'
+import dashboardCategories from '@/config/dashboard'
import StartPage from '@/components/StartPage'
function setChildren (routes, parentName) {
@@ -29,12 +29,13 @@ var router = new Router({
{
path: '/dashboard',
name: 'dashboard',
+ redirect: '/dashboard/groups',
component: DashboardPage,
- children: setChildren(dashboardModules.concat(DashboardPage.routes()))
+ children: setChildren(DashboardPage.routes().concat(...dashboardCategories.map(c => c.modules)))
},
{
path: '*',
- redirect: '/dashboard'
+ redirect: '/dashboard/groups'
}
]
})