jerboa88 / Mergist

Mergist is an online tool to combine multiple PDF files into one
http://mergist.johng.io/
MIT License
3 stars 0 forks source link

Reset button state upon merge error #7

Closed jerboa88 closed 2 years ago

jerboa88 commented 2 years ago

Helpful info

Describe the bug When a serious error is encountered in the merging process (ex. corrupted PDF file), an error alert is shown and we exit the createMergedFile method but the action button is never reset and still shows the progress percent.

Steps to reproduce Steps to reproduce the behavior:

  1. Upload a corrupted file (ex. Mergist Test Document 5 (corrupt).pdf)
  2. Click the merge button
  3. See action button in indeterminate state

Expected behavior We should either reset the button to its initial state (Merge), or change it to a disabled error button so that the user can remove the problematic file before trying again.

Screenshots image