Accessibility fixes for #2149
[oweals/peertube.git] / client / src / app / +my-account / my-account-notifications / my-account-notifications.component.ts
index 9eca13d0f220fba69bc951b1009170e63dbb0d05..a50cb0fb94f60d7b6c819163fadaa7f5334cc519 100644 (file)
@@ -11,4 +11,8 @@ export class MyAccountNotificationsComponent {
   markAllAsRead () {
     this.userNotification.markAllAsRead()
   }
+
+  hasUnreadNotifications () {
+    return this.userNotification.notifications.filter(n => n.read === false).length !== 0
+  }
 }