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'
+import { SystemComponent } from './system.component'
export const SystemRoutes: Routes = [
{
path: 'system',
component: SystemComponent,
- data: {
- },
children: [
{
path: '',
data: {
meta: {
userRight: UserRight.MANAGE_JOBS,
- title: 'Jobs'
+ title: $localize`Jobs`
}
}
},
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`
}
}
}