Add timeout customizatoin for notification toast

This commit is contained in:
samy
2025-08-13 15:23:22 -10:00
parent 790e98e96c
commit 4edb73814a
@@ -13,7 +13,11 @@
type: event.detail.type,
};
setTimeout(() => toast = null, 4000);
const delay = event.detail.timeout ?? 4000;
if (delay > 0) {
setTimeout(() => toast = null, delay);
}
})
"
class="toast {{ $position }} z-50"