st2web icon indicating copy to clipboard operation
st2web copied to clipboard

Disable web buttons on forms after clicks on request send

Open rush-skills opened this issue 3 years ago • 4 comments
trafficstars

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.

rush-skills avatar Apr 25 '22 09:04 rush-skills

+1 good idea

arm4b avatar Apr 25 '22 10:04 arm4b

I want to work on it. @rush-skills

ParthS007 avatar May 05 '22 11:05 ParthS007

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?

amanda11 avatar May 05 '22 13:05 amanda11

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.

rush-skills avatar May 12 '22 15:05 rush-skills