+ iconName: 'peertube-x'
+ })
+ }
+
+ if (moderationItems.children.length !== 0) this.menuEntries.push(moderationItems)
+ }
+
+ private buildConfigurationItems () {
+ if (this.hasConfigRight()) {
+ this.menuEntries.push({ label: $localize`Configuration`, routerLink: '/admin/config' })
+ }
+ }
+
+ private buildPluginItems () {
+ if (this.hasPluginsRight()) {
+ this.menuEntries.push({ label: $localize`Plugins/Themes`, routerLink: '/admin/plugins' })
+ }
+ }
+
+ private buildSystemItems () {
+ const systemItems: TopMenuDropdownParam = {
+ label: $localize`System`,
+ children: []
+ }
+
+ if (this.hasJobsRight()) {
+ systemItems.children.push({
+ label: $localize`Jobs`,
+ iconName: 'circle-tick',
+ routerLink: '/admin/system/jobs'
+ })
+ }
+
+ if (this.hasLogsRight()) {
+ systemItems.children.push({
+ label: $localize`Logs`,
+ iconName: 'playlists',
+ routerLink: '/admin/system/logs'
+ })
+ }
+
+ if (this.hasDebugRight()) {
+ systemItems.children.push({
+ label: $localize`Debug`,
+ iconName: 'cog',
+ routerLink: '/admin/system/debug'