From c5c09c1e5017844027ef77785f2d0406fa6b7039 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Thu, 19 Dec 2019 18:08:21 +0100 Subject: fix deleted comment layout and its notification display --- client/src/app/menu/avatar-notification.component.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'client/src/app/menu') diff --git a/client/src/app/menu/avatar-notification.component.ts b/client/src/app/menu/avatar-notification.component.ts index 680129a48..ff830ac1c 100644 --- a/client/src/app/menu/avatar-notification.component.ts +++ b/client/src/app/menu/avatar-notification.component.ts @@ -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 () { -- cgit v1.2.3