]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - client/src/app/+admin/video-blacklist/video-blacklist.routes.ts
Support roles with rights and add moderator role
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / video-blacklist / video-blacklist.routes.ts
... / ...
CommitLineData
1import { Routes } from '@angular/router'
2
3import { UserRightGuard } from '../../core'
4import { UserRight } from '../../../../../shared'
5import { VideoBlacklistComponent } from './video-blacklist.component'
6import { VideoBlacklistListComponent } from './video-blacklist-list'
7
8export const VideoBlacklistRoutes: Routes = [
9 {
10 path: 'video-blacklist',
11 component: VideoBlacklistComponent,
12 canActivate: [ UserRightGuard ],
13 data: {
14 userRight: UserRight.MANAGE_VIDEO_BLACKLIST
15 },
16 children: [
17 {
18 path: '',
19 redirectTo: 'list',
20 pathMatch: 'full'
21 },
22 {
23 path: 'list',
24 component: VideoBlacklistListComponent,
25 data: {
26 meta: {
27 title: 'Blacklisted videos'
28 }
29 }
30 }
31 ]
32 }
33]