1 import { Component, OnInit } from '@angular/core'
2 import { AuthUser, ScreenService } from '@app/core'
3 import { TopMenuDropdownParam } from '../shared/shared-main/misc/top-menu-dropdown.component'
6 selector: 'my-my-account',
7 templateUrl: './my-account.component.html',
8 styleUrls: [ './my-account.component.scss' ]
10 export class MyAccountComponent implements OnInit {
11 menuEntries: TopMenuDropdownParam[] = []
15 private screenService: ScreenService
18 get isBroadcastMessageDisplayed () {
19 return this.screenService.isBroadcastMessageDisplayed
26 private buildMenu () {
27 const moderationEntries: TopMenuDropdownParam = {
28 label: $localize`Moderation`,
31 label: $localize`Muted accounts`,
32 routerLink: '/my-account/blocklist/accounts',
36 label: $localize`Muted servers`,
37 routerLink: '/my-account/blocklist/servers',
38 iconName: 'peertube-x'
41 label: $localize`Abuse reports`,
42 routerLink: '/my-account/abuses',
50 label: $localize`Settings`,
51 routerLink: '/my-account/settings'
55 label: $localize`Notifications`,
56 routerLink: '/my-account/notifications'
60 label: $localize`Applications`,
61 routerLink: '/my-account/applications'