Bug #10199
closedDocker Compute Resource - New Image: Submit button should be disabled upon click
Description
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):
How reproducible:
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.
Actual results:
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.
Expected results:
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).
Additional info:
Updated by Daniel Lobato Garcia over 9 years ago
I think it should be disabled entirely. We're misleading people into thinking they can create images through it somehow.
Updated by The Foreman Bot almost 9 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman-docker/pull/152 added
Updated by Daniel Lobato Garcia almost 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman-docker|a02da228e4d5cf4be03d9f40ae7d0c97a1fcce45.