routes.ts 629 B

123456789101112131415161718192021
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { RouteRecordRaw } from 'vue-router'
  3. const routes: RouteRecordRaw = {
  4. path: '/users/:internalId(\\d+)',
  5. name: 'UserDetailView',
  6. props: (route) => ({ internalId: Number(route.params.internalId) }),
  7. component: () => import('./views/UserDetailView.vue'),
  8. alias: '/user/profile/:internalId(\\d+)',
  9. meta: {
  10. title: __('User'),
  11. requiresAuth: true,
  12. // app/assets/javascripts/app/controllers/user_profile.coffee:291
  13. requiredPermission: ['ticket.agent'],
  14. hasHeader: true,
  15. level: 2,
  16. },
  17. }
  18. export default routes