Docker Compute Resource - New Image: Submit button should be disabled upon click
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1190183
Description of problem:
When creating a New Image within a Docker compute resource, the submit button does not disable after initial submit. An errant/accidental double-click ends up returning an error that the Image "has already been taken"
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a docker compute resource
2. Infrastructure > Compute Resources > $docker_cr > New Image
3. begin filling out the form
4. "Accidentally" click the Submit button twice.
Two submissions for this data are inadvertently submitted.
User gets an error that the image "has already been taken" (because it has, with the first click) but gets no real indication that the first one was ever functional.
Disable the button upon submit. I guess we could re-enable it upon failed create, so user can fix any errors that resulted (though I would think validation before submit would catch most of this).
Fixes #10199 - Disable image capabilities under compute resource
Docker container images are not created this way, and its just confusing
to users when they see this tab.
#3 Updated by Daniel Lobato Garcia over 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman-docker|a02da228e4d5cf4be03d9f40ae7d0c97a1fcce45.