We need a tasks notification service

This commit is contained in:
shamoon committed 2026-11-14 09:34:00 -08:00
1 parent 813dfe487f
commit b533bfe4b5
19 files changed
+498 -162

No files matched your search

@@ -32,10 +32,11 @@ export class ToastsComponent {
return
}
this.toasts.update((toasts) =>
[toast, ...toasts.filter((t) => t.id !== toast.id)].slice(
0,
MAX_VISIBLE_TOASTS
)
toasts.some((existing) => existing.id === toast.id)
? toasts.map((existing) =>
existing.id === toast.id ? toast : existing
)
: [toast, ...toasts].slice(0, MAX_VISIBLE_TOASTS)
)
})
}