]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - client/src/app/+admin/config/config.routes.ts
Improve theme label
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / config / config.routes.ts
... / ...
CommitLineData
1import { Routes } from '@angular/router'
2import { EditCustomConfigComponent } from '@app/+admin/config/edit-custom-config'
3import { UserRightGuard } from '@app/core'
4import { UserRight } from '@shared/models'
5
6export const ConfigRoutes: Routes = [
7 {
8 path: 'config',
9 canActivate: [ UserRightGuard ],
10 data: {
11 userRight: UserRight.MANAGE_CONFIGURATION
12 },
13 children: [
14 {
15 path: '',
16 redirectTo: 'edit-custom',
17 pathMatch: 'full'
18 },
19 {
20 path: 'edit-custom',
21 component: EditCustomConfigComponent,
22 data: {
23 meta: {
24 title: $localize`Edit custom configuration`
25 }
26 }
27 }
28 ]
29 }
30]