From 5a51ecc2172282786dab47bd874026621554ba6d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 28 Feb 2022 16:27:25 +0100 Subject: Move admin comments list in overviews menu --- .../overview/comments/video-comment.routes.ts | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 client/src/app/+admin/overview/comments/video-comment.routes.ts (limited to 'client/src/app/+admin/overview/comments/video-comment.routes.ts') 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 @@ +import { Routes } from '@angular/router' +import { UserRightGuard } from '@app/core' +import { UserRight } from '@shared/models' +import { VideoCommentListComponent } from './video-comment-list.component' + +export const commentRoutes: Routes = [ + { + path: 'comments', + canActivate: [ UserRightGuard ], + data: { + userRight: UserRight.SEE_ALL_COMMENTS + }, + children: [ + { + path: '', + redirectTo: 'list', + pathMatch: 'full' + }, + { + path: 'list', + component: VideoCommentListComponent, + data: { + meta: { + title: $localize`Comments list` + } + } + } + ] + } +] -- cgit v1.2.3