Skip to content

Commit

Permalink
Update header.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Apr 6, 2024
1 parent 029fd7f commit 4e4a466
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions MyApp/wwwroot/mjs/header.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4e4a466

Please sign in to comment.