From 3b64e75ae2b64c61131a8cba91b85bfa48aae99d Mon Sep 17 00:00:00 2001 From: Edi Cziszter Date: Thu, 28 Oct 2021 12:28:17 +0300 Subject: [PATCH] markRead method now has all notifications by default --- .../components/notifications/notifications.component.html | 4 ++-- .../app/components/notifications/notifications.component.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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(); }