summaryrefslogtreecommitdiffstats
path: root/webapp/src/router.js
diff options
context:
space:
mode:
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'
}
]
})