]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+my-account/my-account.component.ts
Update build steps for localization
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account.component.ts
index 5b2238f5a650c7e52486c84c4afd9665afbe96dd..56373e5f18efd08080eaeb17c8c5476f5b26c734 100644 (file)
@@ -1,5 +1,5 @@
 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'
@@ -18,9 +18,14 @@ export class MyAccountComponent implements OnInit {
   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()
@@ -62,7 +67,7 @@ export class MyAccountComponent implements OnInit {
         {
           label: this.i18n('My subscriptions'),
           routerLink: '/my-account/subscriptions',
-          iconName: 'inbox-full'
+          iconName: 'subscriptions'
         },
         {
           label: this.i18n('My history'),
@@ -94,6 +99,11 @@ export class MyAccountComponent implements OnInit {
           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',