diff --git a/frontend/src/ts/elements/alerts.ts b/frontend/src/ts/elements/alerts.ts index 3411836d9..70340f8f2 100644 --- a/frontend/src/ts/elements/alerts.ts +++ b/frontend/src/ts/elements/alerts.ts @@ -140,10 +140,14 @@ async function getAccountAlerts(): Promise {
${ ie.rewards.length > 0 - ? `
` + ? `
` : `` } -
+ ${ + ie.rewards.length > 0 && ie.read === false + ? `` + : `
` + }
@@ -226,6 +230,16 @@ $("#alertsPopupWrapper").on("mousedown", (e) => { } }); +$("#alertsPopup .accountAlerts .list").on( + "click", + ".item .buttons .deleteAlert", + (e) => { + const id = $(e.currentTarget).closest(".item").attr("data-id") as string; + mailToDelete.push(id); + $(e.currentTarget).closest(".item").remove(); + } +); + $(document).on("keydown", (e) => { if (e.key === "Escape" && !$("#alertsPopupWrapper").hasClass("hidden")) { hide();