- if (this.hasVideoAbusesRight()) moderationItems.children.push({
- label: this.i18n('Video reports'),
- routerLink: '/admin/moderation/video-abuses/list',
- iconName: 'flag'
- })
- if (this.hasVideoBlocklistRight()) moderationItems.children.push({
- label: this.i18n('Video blocks'),
- routerLink: '/admin/moderation/video-blocks/list',
- iconName: 'cross'
- })
- if (this.hasAccountsBlocklistRight()) moderationItems.children.push({
- label: this.i18n('Muted accounts'),
- routerLink: '/admin/moderation/blocklist/accounts',
- iconName: 'user'
- })
- if (this.hasServersBlocklistRight()) moderationItems.children.push({
- label: this.i18n('Muted servers'),
- routerLink: '/admin/moderation/blocklist/servers',
- iconName: 'server'
- })
-
- if (this.hasUsersRight()) this.menuEntries.push({ label: this.i18n('Users'), routerLink: '/admin/users' })
+
+ if (this.hasAbusesRight()) {
+ moderationItems.children.push({
+ label: $localize`Reports`,
+ routerLink: '/admin/moderation/abuses/list',
+ iconName: 'flag'
+ })
+ }
+ if (this.hasVideoBlocklistRight()) {
+ moderationItems.children.push({
+ label: $localize`Video blocks`,
+ routerLink: '/admin/moderation/video-blocks/list',
+ iconName: 'cross'
+ })
+ }
+ if (this.hasVideoCommentsRight()) {
+ moderationItems.children.push({
+ label: $localize`Video comments`,
+ routerLink: '/admin/moderation/video-comments/list',
+ iconName: 'message-circle'
+ })
+ }
+ if (this.hasAccountsBlocklistRight()) {
+ moderationItems.children.push({
+ label: $localize`Muted accounts`,
+ routerLink: '/admin/moderation/blocklist/accounts',
+ iconName: 'user-x'
+ })
+ }
+ if (this.hasServersBlocklistRight()) {
+ moderationItems.children.push({
+ label: $localize`Muted servers`,
+ routerLink: '/admin/moderation/blocklist/servers',
+ iconName: 'peertube-x'
+ })
+ }
+
+ if (this.hasUsersRight()) {
+ this.menuEntries.push({ label: $localize`Users`, routerLink: '/admin/users' })
+ }
+