st2web
st2web copied to clipboard
Disable web buttons on forms after clicks on request send
Some buttons (eg Login, Run Action) in the current st2web allow for clicking them again sending duplicate requests which might not be desired. If the response time is high, this also leads to a bad UX.
A good way to handle it would be to handle the button click, disable the button, and show a loader/status bar/alert/text somewhere instead. Does require reviewing all buttons to properly assign them error and other help/status texts.
A simpler quick fix should be to just disable (all?) buttons that lead to synchronous responses (page change) while the response is pending.
+1 good idea
I want to work on it. @rush-skills
How long is the re-run disabled for? So if it's a long running workflow for instance, when does the button get re-enabled?
https://github.com/StackStorm/st2web/pull/977 fixes this for "Login" button on the homepage and "Re-run" button for action rerun. However, the "Run" button in actions page still has the same behavior and can be improved.