diff --git a/frontend/src/components/notifications/Notifications.vue b/frontend/src/components/notifications/Notifications.vue index cec662781..704680257 100644 --- a/frontend/src/components/notifications/Notifications.vue +++ b/frontend/src/components/notifications/Notifications.vue @@ -74,11 +74,19 @@ {{ $t('notification.markAllRead') }} + + {{ $t('notification.clearAll') }} +

n.readAt = new Date()) } + +async function clearAll() { + const notificationService = new NotificationService() + await notificationService.clearAll() + success({message: t('notification.clearAllSuccess')}) + allNotifications.value = [] +}