From 10475dea7d2343c13014134b33bc75f7c59ac992 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Thu, 19 Dec 2019 14:51:35 +0100 Subject: improve notification popup interactivity: read all, layout, position fixes #1730 --- .../my-account-notifications/my-account-notifications.component.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts') diff --git a/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts b/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts index 9eca13d0f..156e7713d 100644 --- a/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts +++ b/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts @@ -11,4 +11,8 @@ export class MyAccountNotificationsComponent { markAllAsRead () { this.userNotification.markAllAsRead() } + + getUnreadNotifications () { + return this.userNotification.notifications.filter(n => n.read === false).length + } } -- cgit v1.2.3