]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/menu/avatar-notification.component.ts
fix deleted comment layout and its notification display
[github/Chocobozzz/PeerTube.git] / client / src / app / menu / avatar-notification.component.ts
index 680129a48a5b10a1df4e23ad661dbf8493a82213..ff830ac1c310cd221fcc5247df7ca6b00488ebd9 100644 (file)
@@ -65,6 +65,13 @@ export class AvatarNotificationComponent implements OnInit, OnDestroy {
 
   markAllAsRead () {
     this.userNotificationService.markAllAsRead()
+        .subscribe(
+          () => {
+            this.unreadNotifications = 0
+          },
+
+          err => this.notifier.error(err.message)
+        )
   }
 
   private async subscribeToNotifications () {