+ this.buildOverviewItems()
+ this.buildFederationItems()
+ this.buildModerationItems()
+ this.buildConfigurationItems()
+ this.buildPluginItems()
+ this.buildSystemItems()
+ }
+
+ private buildOverviewItems () {
+ const overviewItems: TopMenuDropdownParam = {
+ label: $localize`Overview`,
+ children: []
+ }
+
+ if (this.hasUsersRight()) {
+ overviewItems.children.push({
+ label: $localize`Users`,
+ routerLink: '/admin/users',
+ iconName: 'user'
+ })
+ }
+
+ if (this.hasVideosRight()) {
+ overviewItems.children.push({
+ label: $localize`Videos`,
+ routerLink: '/admin/videos',
+ iconName: 'videos'
+ })
+ }
+
+ if (this.hasVideoCommentsRight()) {
+ overviewItems.children.push({
+ label: $localize`Comments`,
+ routerLink: '/admin/comments',
+ iconName: 'message-circle'
+ })
+ }
+
+ if (overviewItems.children.length !== 0) {
+ this.menuEntries.push(overviewItems)
+ }
+ }
+
+ private buildFederationItems () {
+ if (!this.hasServerFollowRight()) return
+
+ this.menuEntries.push({