]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+admin/overview/comments/video-comment.routes.ts
f0bd440ad95992c75a57ca0dbb3a7514219a5012
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / overview / comments / video-comment.routes.ts
1 import { Routes } from '@angular/router'
2 import { UserRightGuard } from '@app/core'
3 import { UserRight } from '@shared/models'
4 import { VideoCommentListComponent } from './video-comment-list.component'
5
6 export const commentRoutes: Routes = [
7 {
8 path: 'comments',
9 canActivate: [ UserRightGuard ],
10 data: {
11 userRight: UserRight.SEE_ALL_COMMENTS
12 },
13 children: [
14 {
15 path: '',
16 redirectTo: 'list',
17 pathMatch: 'full'
18 },
19 {
20 path: 'list',
21 component: VideoCommentListComponent,
22 data: {
23 meta: {
24 title: $localize`Comments list`
25 }
26 }
27 }
28 ]
29 }
30 ]