Update toast duration does not work
It seems impossible to update the duration of a toast already in progress. The aim is to reuse the previous toast to display the result of the request.
uuid =
LiveToast.send_toast(
:info,
gettext("Test in progress"),
duration: 100_000
)
# later in the live view
LiveToast.send_toast(
:success,
gettext("Test finished"),
duration: 3_000,
uuid: uuid
)
The toast persists until the timeout defined in the first call. Is it possible that this is a current limitation?
We're currently using version 0.6.4 because 0.7.0 conflicts with our version of Gettext.
Interesting. I didn't even think about trying that! We can definitely make that work.
Also sorry about the latest version, I have quite a few things on master that need a new release cut. You can point to master and I think the gettext thing is fixed. I'll cut a new release soon. I'm just paranoid about releasing something broken so I try to let things sit on master a while.
No problem for version 0.7.0, I totally understand! We've just skipped the update for now.
it would be really useful if you could implement it.
+1 would be agreat feature