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'
9 export const SystemRoutes: Routes = [
12 component: SystemComponent,
21 canActivate: [ UserRightGuard ],
22 component: JobsComponent,
25 userRight: UserRight.MANAGE_JOBS,
26 title: $localize`Jobs`
32 canActivate: [ UserRightGuard ],
33 component: LogsComponent,
36 userRight: UserRight.MANAGE_LOGS,
37 title: $localize`Logs`
43 canActivate: [ UserRightGuard ],
44 component: DebugComponent,
47 userRight: UserRight.MANAGE_DEBUG,
48 title: $localize`Debug`