Skip to content

Disable button until a name and SSH key are entered.

heath ritchie requested to merge fcyc/exosphere:240-submission-buttons into master

How to Test

Attempt to add an SSH Keypair without entering a name or a key. You should not be able to submit the form.

Screenshots

Screenshot_from_2021-07-21_10-59-41

Sets the color to gray and changing the button text to indicate the reason why. What do you think of this approach to submit buttons? We can get more sophisticated with the validity test if desired.

This could probably be better from an accessibility standpoint, but I believe this is an improvement.

Should the "invalid-state" button text be localized somehow?

If this is acceptable, we can try a similar approach to the other forms mentioned in issue #240 (closed)

Merge request reports