]>
Commit | Line | Data |
---|---|---|
5cd80545 | 1 | import { Routes } from '@angular/router' |
5cd80545 | 2 | import { UserRight } from '../../../../../shared' |
63c4db6d | 3 | import { UserRightGuard } from '../../core' |
5cd80545 C |
4 | import { JobsComponent } from './job.component' |
5 | import { JobsListComponent } from './jobs-list/jobs-list.component' | |
6 | ||
7 | export const JobsRoutes: Routes = [ | |
8 | { | |
9 | path: 'jobs', | |
10 | component: JobsComponent, | |
11 | canActivate: [ UserRightGuard ], | |
12 | data: { | |
13 | userRight: UserRight.MANAGE_JOBS | |
14 | }, | |
15 | children: [ | |
16 | { | |
17 | path: '', | |
18 | redirectTo: 'list', | |
19 | pathMatch: 'full' | |
20 | }, | |
21 | { | |
22 | path: 'list', | |
23 | component: JobsListComponent, | |
24 | data: { | |
25 | meta: { | |
26 | title: 'Jobs list' | |
27 | } | |
28 | } | |
29 | } | |
30 | ] | |
31 | } | |
32 | ] |