]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+admin/jobs/job.routes.ts
Support occitan
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / jobs / job.routes.ts
1 import { Routes } from '@angular/router'
2 import { UserRight } from '../../../../../shared'
3 import { UserRightGuard } from '../../core'
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 ]