diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-11 10:05:43 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-11 10:14:08 +0200 |
commit | 2c22613c2fe6f7f9c8c7de66e42be54b27cc7edd (patch) | |
tree | 4692ec7ef34bf418a47624704006e61200e174df /client/src/app/+admin/system/system.routes.ts | |
parent | fd8710b897a67518d3a61c319e54b6a65ba443ef (diff) | |
download | PeerTube-2c22613c2fe6f7f9c8c7de66e42be54b27cc7edd.tar.gz PeerTube-2c22613c2fe6f7f9c8c7de66e42be54b27cc7edd.tar.zst PeerTube-2c22613c2fe6f7f9c8c7de66e42be54b27cc7edd.zip |
Add logs page in client
Diffstat (limited to 'client/src/app/+admin/system/system.routes.ts')
-rw-r--r-- | client/src/app/+admin/system/system.routes.ts | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/client/src/app/+admin/system/system.routes.ts b/client/src/app/+admin/system/system.routes.ts new file mode 100644 index 000000000..e6d45b760 --- /dev/null +++ b/client/src/app/+admin/system/system.routes.ts | |||
@@ -0,0 +1,44 @@ | |||
1 | import { Routes } from '@angular/router' | ||
2 | import { UserRightGuard } from '../../core' | ||
3 | import { UserRight } from '../../../../../shared' | ||
4 | import { JobsComponent } from '@app/+admin/system/jobs/jobs.component' | ||
5 | import { LogsComponent } from '@app/+admin/system/logs' | ||
6 | import { SystemComponent } from '@app/+admin/system/system.component' | ||
7 | |||
8 | export const SystemRoutes: Routes = [ | ||
9 | { | ||
10 | path: 'system', | ||
11 | component: SystemComponent, | ||
12 | data: { | ||
13 | }, | ||
14 | children: [ | ||
15 | { | ||
16 | path: '', | ||
17 | redirectTo: 'jobs', | ||
18 | pathMatch: 'full' | ||
19 | }, | ||
20 | { | ||
21 | path: 'jobs', | ||
22 | canActivate: [ UserRightGuard ], | ||
23 | component: JobsComponent, | ||
24 | data: { | ||
25 | meta: { | ||
26 | userRight: UserRight.MANAGE_JOBS, | ||
27 | title: 'Jobs' | ||
28 | } | ||
29 | } | ||
30 | }, | ||
31 | { | ||
32 | path: 'logs', | ||
33 | canActivate: [ UserRightGuard ], | ||
34 | component: LogsComponent, | ||
35 | data: { | ||
36 | meta: { | ||
37 | userRight: UserRight.MANAGE_LOGS, | ||
38 | title: 'Logs' | ||
39 | } | ||
40 | } | ||
41 | } | ||
42 | ] | ||
43 | } | ||
44 | ] | ||