- private updateLibraryLabel (url: string) {
- const [ path ] = url.split('?')
-
- if (path === '/my-account/video-channels') {
- this.libraryLabel = this.i18n('Channels')
- } else if (path === '/my-account/videos') {
- this.libraryLabel = this.i18n('Videos')
- } else if (path === '/my-account/subscriptions') {
- this.libraryLabel = this.i18n('Subscriptions')
- } else if (path === '/my-account/video-imports') {
- this.libraryLabel = this.i18n('Video imports')
- } else {
- this.libraryLabel = ''
+ private buildMenu () {
+ const moderationEntries: TopMenuDropdownParam = {
+ label: $localize`Moderation`,
+ children: [
+ {
+ label: $localize`Muted accounts`,
+ routerLink: '/my-account/blocklist/accounts',
+ iconName: 'user-x'
+ },
+ {
+ label: $localize`Muted servers`,
+ routerLink: '/my-account/blocklist/servers',
+ iconName: 'peertube-x'
+ },
+ {
+ label: $localize`Abuse reports`,
+ routerLink: '/my-account/abuses',
+ iconName: 'flag'
+ }
+ ]