projects
/
oweals
/
peertube.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Accessibility fixes for #2149
[oweals/peertube.git]
/
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 9eca13d0f220fba69bc951b1009170e63dbb0d05..a50cb0fb94f60d7b6c819163fadaa7f5334cc519 100644
(file)
--- 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()
}
+
+ hasUnreadNotifications () {
+ return this.userNotification.notifications.filter(n => n.read === false).length !== 0
+ }
}