From 4e4a4667e6a9f81d43f6a7ad19c32be11436ef1f Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Sat, 6 Apr 2024 15:14:39 +0800 Subject: [PATCH] Update header.mjs --- MyApp/wwwroot/mjs/header.mjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MyApp/wwwroot/mjs/header.mjs b/MyApp/wwwroot/mjs/header.mjs index e9ade6a..daf4e34 100644 --- a/MyApp/wwwroot/mjs/header.mjs +++ b/MyApp/wwwroot/mjs/header.mjs @@ -102,6 +102,13 @@ const NotificationsMenu = { async function markAll() { results.value.forEach(x => x.read = true) await client.api(new MarkAsRead({ allNotifications: true })) + if (api.succeeded) { + const alert = $1('#new-achievements') + if (alert) { + alert.classList.remove('text-red-500') + alert.classList.add('text-transparent') + } + } } async function goto(item) {