diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-06 15:59:17 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-06 15:59:17 +0100 |
commit | bc6f886347f676220847461600122cde86edc272 (patch) | |
tree | a922e2ffe5bb536432a726793f025a1ed7bb2722 /client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts | |
parent | 93d54cc769d88ecb2d7ead3ca293dac52653c13f (diff) | |
download | PeerTube-bc6f886347f676220847461600122cde86edc272.tar.gz PeerTube-bc6f886347f676220847461600122cde86edc272.tar.zst PeerTube-bc6f886347f676220847461600122cde86edc272.zip |
Fix mark all as read notifications
Diffstat (limited to 'client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts')
-rw-r--r-- | client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 156e7713d..a50cb0fb9 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 | |||
@@ -12,7 +12,7 @@ export class MyAccountNotificationsComponent { | |||
12 | this.userNotification.markAllAsRead() | 12 | this.userNotification.markAllAsRead() |
13 | } | 13 | } |
14 | 14 | ||
15 | getUnreadNotifications () { | 15 | hasUnreadNotifications () { |
16 | return this.userNotification.notifications.filter(n => n.read === false).length | 16 | return this.userNotification.notifications.filter(n => n.read === false).length !== 0 |
17 | } | 17 | } |
18 | } | 18 | } |