]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/jobs/job.routes.ts
Proxify local storage and handle if it is unavailable
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / jobs / job.routes.ts
CommitLineData
5cd80545 1import { Routes } from '@angular/router'
5cd80545 2import { UserRight } from '../../../../../shared'
63c4db6d 3import { UserRightGuard } from '../../core'
5cd80545
C
4import { JobsComponent } from './job.component'
5import { JobsListComponent } from './jobs-list/jobs-list.component'
6
7export 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]