routes.ts 607 B

12345678910111213141516171819202122
  1. // Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. import type { RouteRecordRaw } from 'vue-router'
  3. const routes: RouteRecordRaw[] = [
  4. {
  5. path: '/organizations/:internalId',
  6. name: 'OrganizationDetailView',
  7. props: (route) => ({ internalId: Number(route.params.internalId) }),
  8. component: () => import('./views/OrganizationDetailView.vue'),
  9. meta: {
  10. title: __('Organization'),
  11. requiresAuth: true,
  12. requiredPermission: ['ticket.agent'],
  13. hasBottomNavigation: true,
  14. hasHeader: true,
  15. level: 1,
  16. },
  17. },
  18. ]
  19. export default routes