fix(notifications): mark all notifications as read in ui directly when marking as read on the server
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This caused the notifications to stay on "unread" when marking them as read, making an unpleasant user experience
This commit is contained in:
parent
70f48eaaca
commit
58c7da019d
|
@ -156,6 +156,8 @@ async function markAllRead() {
|
||||||
const notificationService = new NotificationService()
|
const notificationService = new NotificationService()
|
||||||
await notificationService.markAllRead()
|
await notificationService.markAllRead()
|
||||||
success({message: t('notification.markAllReadSuccess')})
|
success({message: t('notification.markAllReadSuccess')})
|
||||||
|
|
||||||
|
notifications.value.forEach(n => n.readAt = new Date())
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Reference in New Issue