import { Component, OnInit } from '@angular/core'
-import { AuthService, ServerService, AuthUser } from '@app/core'
+import { AuthService, ScreenService, ServerService, AuthUser } from '@app/core'
import { I18n } from '@ngx-translate/i18n-polyfill'
import { ServerConfig } from '@shared/models'
import { TopMenuDropdownParam } from '../shared/shared-main/misc/top-menu-dropdown.component'
constructor (
private serverService: ServerService,
private authService: AuthService,
+ private screenService: ScreenService,
private i18n: I18n
) { }
+ get isBroadcastMessageDisplayed () {
+ return this.screenService.isBroadcastMessageDisplayed
+ }
+
ngOnInit (): void {
this.serverConfig = this.serverService.getTmpConfig()
this.serverService.getConfig()
{
label: this.i18n('My subscriptions'),
routerLink: '/my-account/subscriptions',
- iconName: 'inbox-full'
+ iconName: 'subscriptions'
},
{
label: this.i18n('My history'),
routerLink: '/my-account/blocklist/servers',
iconName: 'peertube-x'
},
+ {
+ label: this.i18n('My abuse reports'),
+ routerLink: '/my-account/abuses',
+ iconName: 'flag'
+ },
{
label: this.i18n('Ownership changes'),
routerLink: '/my-account/ownership',