Closed juancarlospaco closed 5 years ago
Really good solution! I have been trying to solve this multiple times, specially using Jester's after "/":
to avoid websockets, but without success. We should only use it for actions, where we know a delay time could occur, not just for a notification like Settings has been updated. I'm looking forward to using it on the enable/disable plugins.
I can first test it on one of the next days, but the code looks fine to me, so if you need it, you can merge!
delaySeconds
from0
to255
with a message for the user, if things going Ok or not or whats happening.redirect "/"
when successful./settings
we can improve the UX, on some places we are using justredirect "/"
when successful.5
Seconds, so the user can see the Results message, our Backend is fast to do most things on less than 5 Seconds anyway.Before:
After:
Code to Test it, add on
routes.nim
:Easy to Merge, since not touching any pre-existent code. :slightly_smiling_face: