2021-01-23 13:40:35 +00:00
|
|
|
import { FG_Plugin } from 'src/plugins';
|
2021-03-19 20:01:50 +00:00
|
|
|
import { PERMISSIONS } from '../permissions';
|
2021-01-23 13:40:35 +00:00
|
|
|
|
2021-03-22 02:24:27 +00:00
|
|
|
export const innerRoutes: FG_Plugin.MenuRoute[] = [
|
2021-01-23 13:40:35 +00:00
|
|
|
{
|
|
|
|
title: 'Dienste',
|
|
|
|
icon: 'mdi-briefcase',
|
2021-01-30 03:19:30 +00:00
|
|
|
permissions: ['user'],
|
|
|
|
route: {
|
|
|
|
path: 'schedule',
|
|
|
|
name: 'schedule',
|
2021-03-14 16:41:43 +00:00
|
|
|
redirect: { name: 'schedule-overview' },
|
2021-01-30 03:19:30 +00:00
|
|
|
},
|
2021-01-23 13:40:35 +00:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
title: 'Dienstübersicht',
|
|
|
|
icon: 'mdi-account-group',
|
|
|
|
shortcut: true,
|
2021-01-30 03:19:30 +00:00
|
|
|
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,
|
2021-03-19 20:01:50 +00:00
|
|
|
permissions: [PERMISSIONS.CREATE],
|
2021-01-30 03:19:30 +00:00
|
|
|
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,
|
2021-01-30 03:19:30 +00:00
|
|
|
route: {
|
|
|
|
path: 'schedule-requests',
|
|
|
|
name: 'schedule-requests',
|
|
|
|
component: () => import('../pages/Requests.vue'),
|
|
|
|
},
|
2021-03-18 16:23:57 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2021-01-23 13:40:35 +00:00
|
|
|
];
|
|
|
|
|
2021-03-22 02:24:27 +00:00
|
|
|
export const privateRoutes: FG_Plugin.NamedRouteRecordRaw[] = [
|
|
|
|
{
|
|
|
|
name: 'events-edit',
|
|
|
|
path: 'schedule/edit/:id',
|
|
|
|
redirect: { name: 'schedule-overview' },
|
|
|
|
},
|
|
|
|
];
|