mirror of https://github.com/Chocobozzz/PeerTube
Fix lint
parent
4d45cdfa10
commit
57e56eb294
|
@ -19,22 +19,22 @@ export class AdminComponent implements OnInit {
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
ngOnInit () {
|
ngOnInit () {
|
||||||
const federationItems: TopMenuDropdownParam = {
|
const federationItems: TopMenuDropdownParam = {
|
||||||
label: this.i18n('Federation'),
|
label: this.i18n('Federation'),
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
label: this.i18n('Instances you follow'),
|
label: this.i18n('Instances you follow'),
|
||||||
routerLink: '/admin/follows/following-list',
|
routerLink: '/admin/follows/following-list',
|
||||||
iconName: 'sign-out'
|
iconName: 'sign-out'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.i18n('Instances following you'),
|
label: this.i18n('Instances following you'),
|
||||||
routerLink: '/admin/follows/followers-list',
|
routerLink: '/admin/follows/followers-list',
|
||||||
iconName: 'sign-in'
|
iconName: 'sign-in'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.i18n('Video redundancies'),
|
label: this.i18n('Video redundancies'),
|
||||||
routerLink: '/admin/follows/video-redundancies-list',
|
routerLink: '/admin/follows/video-redundancies-list',
|
||||||
iconName: 'videos'
|
iconName: 'videos'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -44,26 +44,35 @@ export class AdminComponent implements OnInit {
|
||||||
label: this.i18n('Moderation'),
|
label: this.i18n('Moderation'),
|
||||||
children: []
|
children: []
|
||||||
}
|
}
|
||||||
if (this.hasVideoAbusesRight()) moderationItems.children.push({
|
|
||||||
label: this.i18n('Video reports'),
|
if (this.hasVideoAbusesRight()) {
|
||||||
|
moderationItems.children.push({
|
||||||
|
label: this.i18n('Video reports'),
|
||||||
routerLink: '/admin/moderation/video-abuses/list',
|
routerLink: '/admin/moderation/video-abuses/list',
|
||||||
iconName: 'flag'
|
iconName: 'flag'
|
||||||
})
|
})
|
||||||
if (this.hasVideoBlocklistRight()) moderationItems.children.push({
|
}
|
||||||
label: this.i18n('Video blocks'),
|
if (this.hasVideoBlocklistRight()) {
|
||||||
|
moderationItems.children.push({
|
||||||
|
label: this.i18n('Video blocks'),
|
||||||
routerLink: '/admin/moderation/video-blocks/list',
|
routerLink: '/admin/moderation/video-blocks/list',
|
||||||
iconName: 'cross'
|
iconName: 'cross'
|
||||||
})
|
})
|
||||||
if (this.hasAccountsBlocklistRight()) moderationItems.children.push({
|
}
|
||||||
|
if (this.hasAccountsBlocklistRight()) {
|
||||||
|
moderationItems.children.push({
|
||||||
label: this.i18n('Muted accounts'),
|
label: this.i18n('Muted accounts'),
|
||||||
routerLink: '/admin/moderation/blocklist/accounts',
|
routerLink: '/admin/moderation/blocklist/accounts',
|
||||||
iconName: 'user'
|
iconName: 'user'
|
||||||
})
|
})
|
||||||
if (this.hasServersBlocklistRight()) moderationItems.children.push({
|
}
|
||||||
|
if (this.hasServersBlocklistRight()) {
|
||||||
|
moderationItems.children.push({
|
||||||
label: this.i18n('Muted servers'),
|
label: this.i18n('Muted servers'),
|
||||||
routerLink: '/admin/moderation/blocklist/servers',
|
routerLink: '/admin/moderation/blocklist/servers',
|
||||||
iconName: 'server'
|
iconName: 'server'
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
if (this.hasUsersRight()) this.menuEntries.push({ label: this.i18n('Users'), routerLink: '/admin/users' })
|
if (this.hasUsersRight()) this.menuEntries.push({ label: this.i18n('Users'), routerLink: '/admin/users' })
|
||||||
if (this.hasServerFollowRight()) this.menuEntries.push(federationItems)
|
if (this.hasServerFollowRight()) this.menuEntries.push(federationItems)
|
||||||
|
|
|
@ -77,7 +77,7 @@ import { MyAccountComponent } from './my-account.component'
|
||||||
MyAccountVideoPlaylistCreateComponent,
|
MyAccountVideoPlaylistCreateComponent,
|
||||||
MyAccountVideoPlaylistUpdateComponent,
|
MyAccountVideoPlaylistUpdateComponent,
|
||||||
MyAccountVideoPlaylistsComponent,
|
MyAccountVideoPlaylistsComponent,
|
||||||
MyAccountVideoPlaylistElementsComponent,
|
MyAccountVideoPlaylistElementsComponent
|
||||||
],
|
],
|
||||||
|
|
||||||
exports: [
|
exports: [
|
||||||
|
|
|
@ -83,7 +83,7 @@ import { AUTH_INTERCEPTOR_PROVIDER } from './auth'
|
||||||
ListOverflowComponent,
|
ListOverflowComponent,
|
||||||
TopMenuDropdownComponent,
|
TopMenuDropdownComponent,
|
||||||
|
|
||||||
UserNotificationsComponent,
|
UserNotificationsComponent
|
||||||
],
|
],
|
||||||
|
|
||||||
exports: [
|
exports: [
|
||||||
|
|
Loading…
Reference in New Issue