]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+admin/system/system.routes.ts
Use localize for page titles
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / system / system.routes.ts
1 import { Routes } from '@angular/router'
2 import { UserRightGuard } from '@app/core'
3 import { UserRight } from '@shared/models'
4 import { DebugComponent } from './debug'
5 import { JobsComponent } from './jobs/jobs.component'
6 import { LogsComponent } from './logs'
7 import { SystemComponent } from './system.component'
8
9 export const SystemRoutes: Routes = [
10 {
11 path: 'system',
12 component: SystemComponent,
13 children: [
14 {
15 path: '',
16 redirectTo: 'jobs',
17 pathMatch: 'full'
18 },
19 {
20 path: 'jobs',
21 canActivate: [ UserRightGuard ],
22 component: JobsComponent,
23 data: {
24 meta: {
25 userRight: UserRight.MANAGE_JOBS,
26 title: $localize`Jobs`
27 }
28 }
29 },
30 {
31 path: 'logs',
32 canActivate: [ UserRightGuard ],
33 component: LogsComponent,
34 data: {
35 meta: {
36 userRight: UserRight.MANAGE_LOGS,
37 title: $localize`Logs`
38 }
39 }
40 },
41 {
42 path: 'debug',
43 canActivate: [ UserRightGuard ],
44 component: DebugComponent,
45 data: {
46 meta: {
47 userRight: UserRight.MANAGE_DEBUG,
48 title: $localize`Debug`
49 }
50 }
51 }
52 ]
53 }
54 ]