Closed dcalhoun closed 1 week ago
Disable the submit button when a site addition is pending.
Without disabling the submit button, one can resubmit the form which displays an unexpected error and/or results in duplicative site directories.
https://github.com/Automattic/studio/assets/438664/b256743d-5ae9-4acd-b315-51eae474eba5
Good catch! I experienced that when I was doing a user demo this week, and I thought it might be some random error. It seems that the user might have double-clicked the button.
Proposed Changes
Disable the submit button when a site addition is pending.
Without disabling the submit button, one can resubmit the form which displays an unexpected error and/or results in duplicative site directories.
Testing Instructions
https://github.com/Automattic/studio/assets/438664/b256743d-5ae9-4acd-b315-51eae474eba5
Pre-merge Checklist