]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/menu/notification.component.ts
Fix action dropdown height
[github/Chocobozzz/PeerTube.git] / client / src / app / menu / notification.component.ts
index b7d9e9abb4af6e3bb8552cc37bddac09c9d299e5..0beac69be00aa333d83e2eb3ef386873cccf44ee 100644 (file)
@@ -36,14 +36,14 @@ export class NotificationComponent implements OnInit, OnDestroy {
 
   ngOnInit () {
     this.userNotificationService.countUnreadNotifications()
-        .subscribe(
-          result => {
-            this.unreadNotifications = Math.min(result, 99) // Limit number to 99
+        .subscribe({
+          next: result => {
+            this.unreadNotifications = result
             this.subscribeToNotifications()
           },
 
-          err => this.notifier.error(err.message)
-        )
+          error: err => this.notifier.error(err.message)
+        })
 
     this.routeSub = this.router.events
                         .pipe(filter(event => event instanceof NavigationEnd))