X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Badmin%2Fsystem%2Fsystem.routes.ts;h=d180aa3b96e9d12315b92af5272ae5ca7e3dd8d5;hb=49aa917509568a3b96967732512b5ef4ecc50b1b;hp=e6d45b7608c6dc1fcf3784e01028a92bd49bdef6;hpb=2c22613c2fe6f7f9c8c7de66e42be54b27cc7edd;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+admin/system/system.routes.ts b/client/src/app/+admin/system/system.routes.ts index e6d45b760..d180aa3b9 100644 --- a/client/src/app/+admin/system/system.routes.ts +++ b/client/src/app/+admin/system/system.routes.ts @@ -1,16 +1,13 @@ import { Routes } from '@angular/router' -import { UserRightGuard } from '../../core' -import { UserRight } from '../../../../../shared' -import { JobsComponent } from '@app/+admin/system/jobs/jobs.component' -import { LogsComponent } from '@app/+admin/system/logs' -import { SystemComponent } from '@app/+admin/system/system.component' +import { UserRightGuard } from '@app/core' +import { UserRight } from '@shared/models' +import { DebugComponent } from './debug' +import { JobsComponent } from './jobs/jobs.component' +import { LogsComponent } from './logs' export const SystemRoutes: Routes = [ { path: 'system', - component: SystemComponent, - data: { - }, children: [ { path: '', @@ -24,7 +21,7 @@ export const SystemRoutes: Routes = [ data: { meta: { userRight: UserRight.MANAGE_JOBS, - title: 'Jobs' + title: $localize`Jobs` } } }, @@ -35,7 +32,18 @@ export const SystemRoutes: Routes = [ data: { meta: { userRight: UserRight.MANAGE_LOGS, - title: 'Logs' + title: $localize`Logs` + } + } + }, + { + path: 'debug', + canActivate: [ UserRightGuard ], + component: DebugComponent, + data: { + meta: { + userRight: UserRight.MANAGE_DEBUG, + title: $localize`Debug` } } }