srcrip / live_toast

A beautiful drop-in replacement for the Phoenix Flash system.
https://toast.src.rip
MIT License
188 stars 15 forks source link

Controller Duration #22

Open absowoot opened 3 months ago

absowoot commented 3 months ago

When setting a toast in a controller, it appears that the duration is automatically set to 0 in LiveToast.Components.flashes. Could the ability to set options be added?

texasdrean commented 1 month ago

Same here, when setting a toast in a controller, it stays forever. Someone to help?

andresgutgon commented 2 weeks ago

I think is on purpose https://github.com/srcrip/live_toast/blob/master/assets/js/live_toast/live_toast.ts#L225-L227