diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-11 10:56:29 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-11 10:58:09 +0200 |
commit | 5d79474cc66383ecbfcef6366f63a34c3af21cbf (patch) | |
tree | 6b2cd85c25294ca04c94cbbcc90353d25e9cee06 /client/src/app/+admin/system/system.routes.ts | |
parent | 2b3f1919fda81c2781ceeb9071d426c184e1b21c (diff) | |
download | PeerTube-5d79474cc66383ecbfcef6366f63a34c3af21cbf.tar.gz PeerTube-5d79474cc66383ecbfcef6366f63a34c3af21cbf.tar.zst PeerTube-5d79474cc66383ecbfcef6366f63a34c3af21cbf.zip |
Add debug component to help admins to fix IP issues
Diffstat (limited to 'client/src/app/+admin/system/system.routes.ts')
-rw-r--r-- | client/src/app/+admin/system/system.routes.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/client/src/app/+admin/system/system.routes.ts b/client/src/app/+admin/system/system.routes.ts index e6d45b760..2d851794d 100644 --- a/client/src/app/+admin/system/system.routes.ts +++ b/client/src/app/+admin/system/system.routes.ts | |||
@@ -4,6 +4,7 @@ import { UserRight } from '../../../../../shared' | |||
4 | import { JobsComponent } from '@app/+admin/system/jobs/jobs.component' | 4 | import { JobsComponent } from '@app/+admin/system/jobs/jobs.component' |
5 | import { LogsComponent } from '@app/+admin/system/logs' | 5 | import { LogsComponent } from '@app/+admin/system/logs' |
6 | import { SystemComponent } from '@app/+admin/system/system.component' | 6 | import { SystemComponent } from '@app/+admin/system/system.component' |
7 | import { DebugComponent } from '@app/+admin/system/debug' | ||
7 | 8 | ||
8 | export const SystemRoutes: Routes = [ | 9 | export const SystemRoutes: Routes = [ |
9 | { | 10 | { |
@@ -38,6 +39,17 @@ export const SystemRoutes: Routes = [ | |||
38 | title: 'Logs' | 39 | title: 'Logs' |
39 | } | 40 | } |
40 | } | 41 | } |
42 | }, | ||
43 | { | ||
44 | path: 'debug', | ||
45 | canActivate: [ UserRightGuard ], | ||
46 | component: DebugComponent, | ||
47 | data: { | ||
48 | meta: { | ||
49 | userRight: UserRight.MANAGE_DEBUG, | ||
50 | title: 'Debug' | ||
51 | } | ||
52 | } | ||
41 | } | 53 | } |
42 | ] | 54 | ] |
43 | } | 55 | } |