1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- // Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
- import type { RouteRecordRaw } from 'vue-router'
- import { ticketInformationRoutes } from './views/TicketInformation/plugins'
- const routes: RouteRecordRaw[] = [
- {
- path: '/tickets/:internalId(\\d+)',
- name: 'TicketDetailView',
- props: true,
- component: () => import('./views/TicketDetailView.vue'),
- meta: {
- title: __('Ticket'), // TODO needs to be the ticket title/number (should be done inside of the route component?)
- requiresAuth: true,
- requiredPermission: ['ticket.agent', 'ticket.customer'],
- level: 3,
- },
- },
- {
- path: '/tickets/:internalId(\\d+)/information',
- component: () =>
- import('./views/TicketInformation/TicketInformationView.vue'),
- name: 'TicketInformationView',
- props: true,
- children: ticketInformationRoutes,
- meta: {
- title: __('Ticket information'),
- requiresAuth: true,
- requiredPermission: ['ticket.agent', 'ticket.customer'],
- hasHeader: true,
- level: 4,
- },
- },
- {
- path: '/tickets/view/:overviewLink?',
- name: 'TicketOverview',
- props: true,
- component: () => import('./views/TicketOverview.vue'),
- meta: {
- title: __('Tickets'),
- requiresAuth: true,
- requiredPermission: ['ticket.agent', 'ticket.customer'],
- hasBottomNavigation: true,
- level: 2,
- },
- },
- {
- path: '/tickets/create',
- name: 'TicketCreate',
- props: true,
- component: () => import('./views/TicketCreate.vue'),
- meta: {
- title: __('Ticket Create'),
- requiresAuth: true,
- requiredPermission: ['ticket.agent', 'ticket.customer'],
- level: 2,
- },
- },
- ]
- export default routes
|