Mercurial > gemma
diff client/src/router.js @ 713:badbc0207418
feat: systeminformation feature added
Under systeminformation there is a component to display textual
data. Currently there is a stub log from my console displayed.
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Fri, 21 Sep 2018 13:18:30 +0200 |
parents | 8e67604d972a |
children | fb39ec3b95a8 |
line wrap: on
line diff
--- a/client/src/router.js Fri Sep 21 12:53:09 2018 +0200 +++ b/client/src/router.js Fri Sep 21 13:18:30 2018 +0200 @@ -10,6 +10,7 @@ const Login = () => import("./login/Login.vue"); const Main = () => import("./application/Main.vue"); const Usermanagement = () => import("./usermanagement/Usermanagement.vue"); +const Logs = () => import("./logs/logs.vue"); Vue.use(Router); @@ -37,6 +38,22 @@ } }, { + path: "/logs", + name: "logs", + component: Logs, + meta: { + requiresAuth: true + }, + beforeEnter: (to, from, next) => { + const isSysadmin = store.getters["user/isSysAdmin"]; + if (!isSysadmin) { + next("/"); + } else { + next(); + } + } + }, + { path: "/", name: "mainview", component: Main,