From 58c7da019da972753f09baffd521d52907a9af14 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 6 Feb 2024 18:33:46 +0100 Subject: [PATCH] fix(notifications): mark all notifications as read in ui directly when marking as read on the server This caused the notifications to stay on "unread" when marking them as read, making an unpleasant user experience --- src/components/notifications/notifications.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue index 432d89951..93ee63405 100644 --- a/src/components/notifications/notifications.vue +++ b/src/components/notifications/notifications.vue @@ -156,6 +156,8 @@ async function markAllRead() { const notificationService = new NotificationService() await notificationService.markAllRead() success({message: t('notification.markAllReadSuccess')}) + + notifications.value.forEach(n => n.readAt = new Date()) }