diff options
author | Chocobozzz <me@florianbigard.com> | 2022-02-28 16:27:25 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-02-28 16:27:25 +0100 |
commit | 5a51ecc2172282786dab47bd874026621554ba6d (patch) | |
tree | 129a6bc40d2f048fd73362e427b75974f040ac5f /client/src/app/+admin/admin.component.ts | |
parent | f1c70a8666e53414f4e604290d35d26ae725b691 (diff) | |
download | PeerTube-5a51ecc2172282786dab47bd874026621554ba6d.tar.gz PeerTube-5a51ecc2172282786dab47bd874026621554ba6d.tar.zst PeerTube-5a51ecc2172282786dab47bd874026621554ba6d.zip |
Move admin comments list in overviews menu
Diffstat (limited to 'client/src/app/+admin/admin.component.ts')
-rw-r--r-- | client/src/app/+admin/admin.component.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/client/src/app/+admin/admin.component.ts b/client/src/app/+admin/admin.component.ts index b8a957d1c..746549555 100644 --- a/client/src/app/+admin/admin.component.ts +++ b/client/src/app/+admin/admin.component.ts | |||
@@ -52,6 +52,14 @@ export class AdminComponent implements OnInit { | |||
52 | }) | 52 | }) |
53 | } | 53 | } |
54 | 54 | ||
55 | if (this.hasVideoCommentsRight()) { | ||
56 | overviewItems.children.push({ | ||
57 | label: $localize`Comments`, | ||
58 | routerLink: '/admin/comments', | ||
59 | iconName: 'message-circle' | ||
60 | }) | ||
61 | } | ||
62 | |||
55 | if (overviewItems.children.length !== 0) { | 63 | if (overviewItems.children.length !== 0) { |
56 | this.menuEntries.push(overviewItems) | 64 | this.menuEntries.push(overviewItems) |
57 | } | 65 | } |
@@ -104,14 +112,6 @@ export class AdminComponent implements OnInit { | |||
104 | }) | 112 | }) |
105 | } | 113 | } |
106 | 114 | ||
107 | if (this.hasVideoCommentsRight()) { | ||
108 | moderationItems.children.push({ | ||
109 | label: $localize`Video comments`, | ||
110 | routerLink: '/admin/moderation/video-comments/list', | ||
111 | iconName: 'message-circle' | ||
112 | }) | ||
113 | } | ||
114 | |||
115 | if (this.hasAccountsBlocklistRight()) { | 115 | if (this.hasAccountsBlocklistRight()) { |
116 | moderationItems.children.push({ | 116 | moderationItems.children.push({ |
117 | label: $localize`Muted accounts`, | 117 | label: $localize`Muted accounts`, |