flaschengeist-frontend/src/plugins/schedule/routes/index.ts

57 lines
1.4 KiB
TypeScript
Raw Normal View History

2021-01-23 13:40:35 +00:00
import { FG_Plugin } from 'src/plugins';
import { PERMISSIONS } from '../permissions';
2021-01-23 13:40:35 +00:00
export const innerRoutes: FG_Plugin.MenuRoute[] = [
2021-01-23 13:40:35 +00:00
{
title: 'Dienste',
icon: 'mdi-briefcase',
permissions: ['user'],
route: {
path: 'schedule',
name: 'schedule',
2021-03-14 16:41:43 +00:00
redirect: { name: 'schedule-overview' },
},
2021-01-23 13:40:35 +00:00
children: [
{
title: 'Dienstübersicht',
icon: 'mdi-account-group',
shortcut: true,
route: {
path: 'schedule-overview',
name: 'schedule-overview',
component: () => import('../pages/Overview.vue'),
},
2021-01-23 13:40:35 +00:00
},
{
title: 'Dienstverwaltung',
icon: 'mdi-account-details',
shortcut: false,
permissions: [PERMISSIONS.CREATE],
route: {
path: 'schedule-management',
name: 'schedule-management',
component: () => import('../pages/Management.vue'),
},
2021-01-23 13:40:35 +00:00
},
{
title: 'Dienstanfragen',
icon: 'mdi-account-switch',
shortcut: false,
route: {
path: 'schedule-requests',
name: 'schedule-requests',
component: () => import('../pages/Requests.vue'),
},
},
],
},
2021-01-23 13:40:35 +00:00
];
export const privateRoutes: FG_Plugin.NamedRouteRecordRaw[] = [
{
name: 'events-edit',
path: 'schedule/edit/:id',
redirect: { name: 'schedule-overview' },
},
];