diff --git a/apps/red-ui/src/app/components/notifications/notifications.component.html b/apps/red-ui/src/app/components/notifications/notifications.component.html
index 3b2f42e76..a7ef00a67 100644
--- a/apps/red-ui/src/app/components/notifications/notifications.component.html
+++ b/apps/red-ui/src/app/components/notifications/notifications.component.html
@@ -10,10 +10,14 @@
[verticalPadding]="0"
>
-
-
{{ group.date }}
+
+
+
{{ group.date }}
+
View all
+
+
{{ notification.time }}
notifications.filter(n => !n.readDate).length > 0),
distinctUntilChanged(),
+ shareReplay(1),
);
}
@@ -46,9 +48,9 @@ export class NotificationsComponent implements OnInit {
await this._loadData();
}
- async markRead(notification: Notification, $event, isRead = true): Promise {
+ async markRead($event, notifications: List = this._notifications$.getValue().map(n => n.id), isRead = true): Promise {
$event.stopPropagation();
- await this._notificationsService.toggleNotificationRead([notification.id], isRead).toPromise();
+ await this._notificationsService.toggleNotificationRead(notifications, isRead).toPromise();
await this._loadData();
}