routes.ts 667 B

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