aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/overview/comments/video-comment.routes.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-02-28 16:27:25 +0100
committerChocobozzz <me@florianbigard.com>2022-02-28 16:27:25 +0100
commit5a51ecc2172282786dab47bd874026621554ba6d (patch)
tree129a6bc40d2f048fd73362e427b75974f040ac5f /client/src/app/+admin/overview/comments/video-comment.routes.ts
parentf1c70a8666e53414f4e604290d35d26ae725b691 (diff)
downloadPeerTube-5a51ecc2172282786dab47bd874026621554ba6d.tar.gz
PeerTube-5a51ecc2172282786dab47bd874026621554ba6d.tar.zst
PeerTube-5a51ecc2172282786dab47bd874026621554ba6d.zip
Move admin comments list in overviews menu
Diffstat (limited to 'client/src/app/+admin/overview/comments/video-comment.routes.ts')
-rw-r--r--client/src/app/+admin/overview/comments/video-comment.routes.ts30
1 files changed, 30 insertions, 0 deletions
diff --git a/client/src/app/+admin/overview/comments/video-comment.routes.ts b/client/src/app/+admin/overview/comments/video-comment.routes.ts
new file mode 100644
index 000000000..f0bd440ad
--- /dev/null
+++ b/client/src/app/+admin/overview/comments/video-comment.routes.ts
@@ -0,0 +1,30 @@
1import { Routes } from '@angular/router'
2import { UserRightGuard } from '@app/core'
3import { UserRight } from '@shared/models'
4import { VideoCommentListComponent } from './video-comment-list.component'
5
6export 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]