Reset form button if error encountered
What does this MR do and why?
Previous to Use Pajamas button component for form submit (!98747 - merged),
the input[type=submit]
element was re-enabled after an unsuccessful
submit. Otherwise, the user had to retype the name of the token to
re-enable the submit button (selecting a scope was not enough).
Here, we apply the previous behaviour to button[type=submit]
. In
addition, it prevents an error in the web console.
Screenshots or screen recordings
Before
Screen_Recording_2022-10-04_at_15.37.29
After
Screen_Recording_2022-10-04_at_15.30.53
How to set up and validate locally
- Go to the User Settings > Access Tokens: https://gdk.test:3443/-/profile/personal_access_tokens
- Type a name for the token and click the
Create personal access token
button - Check if the button is enabled or disabled.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.