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 6547b1e45..a7ef00a67 100644 --- a/apps/red-ui/src/app/components/notifications/notifications.component.html +++ b/apps/red-ui/src/app/components/notifications/notifications.component.html @@ -17,7 +17,7 @@
{{ notification.time }}
{ + async markRead($event, notifications: List = this._notifications$.getValue().map(n => n.id), isRead = true): Promise { $event.stopPropagation(); - const body = notification ? [notification.id] : this._notifications$.getValue().map(n => n.id); - await this._notificationsService.toggleNotificationRead(body, isRead).toPromise(); + await this._notificationsService.toggleNotificationRead(notifications, isRead).toPromise(); await this._loadData(); }