FIX: Disable the post submit button during image processing properly (PR #13765)

There was a UI bug when submitting multiple files in the same batch. We would remove the disabled status of the submit button after the previous file was sucesfully uploaded and the next one was still mid optimization.

Reported at Testing composer image optimization - #15 by dodesz - feature - Discourse Meta


This pull request has been mentioned on Discourse Meta. There might be relevant details there: