diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2019-12-19 18:08:21 +0100 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2019-12-19 18:08:21 +0100 |
commit | c5c09c1e5017844027ef77785f2d0406fa6b7039 (patch) | |
tree | 0735a01058bcd2ec3d5ae861ba35f21a1974fa93 /client/src/app/menu/avatar-notification.component.ts | |
parent | 10475dea7d2343c13014134b33bc75f7c59ac992 (diff) | |
download | PeerTube-c5c09c1e5017844027ef77785f2d0406fa6b7039.tar.gz PeerTube-c5c09c1e5017844027ef77785f2d0406fa6b7039.tar.zst PeerTube-c5c09c1e5017844027ef77785f2d0406fa6b7039.zip |
fix deleted comment layout and its notification display
Diffstat (limited to 'client/src/app/menu/avatar-notification.component.ts')
-rw-r--r-- | client/src/app/menu/avatar-notification.component.ts | 7 |
1 files changed, 7 insertions, 0 deletions
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 { | |||
65 | 65 | ||
66 | markAllAsRead () { | 66 | markAllAsRead () { |
67 | this.userNotificationService.markAllAsRead() | 67 | this.userNotificationService.markAllAsRead() |
68 | .subscribe( | ||
69 | () => { | ||
70 | this.unreadNotifications = 0 | ||
71 | }, | ||
72 | |||
73 | err => this.notifier.error(err.message) | ||
74 | ) | ||
68 | } | 75 | } |
69 | 76 | ||
70 | private async subscribeToNotifications () { | 77 | private async subscribeToNotifications () { |