Describe the bug
When DOCX generation fails, a notification is displayed, but the button state does not revert to normal. It remains stuck in the Generating... state with the disabled attribute still active.
Steps to reproduce
- Fill in all required fields.
- Click the button to generate the DOCX file.
- Trigger a generation failure (e.g., via server error or invalid input).
- Observe that an error alert appears, but the button remains disabled and continues to show "Generating...".
Expected behavior
The button should be re-enabled and revert to its original label (e.g., "Generate") immediately after the process fails.
Environment
- OS: Linux Mint 22.2 x86_64
- Browser: Zen Browser
Additional context
The state-reset logic likely needs to be added to the catch block or a finally clause in the frontend request handler.
Describe the bug
When DOCX generation fails, a notification is displayed, but the button state does not revert to normal. It remains stuck in the
Generating...state with thedisabledattribute still active.Steps to reproduce
Expected behavior
The button should be re-enabled and revert to its original label (e.g., "Generate") immediately after the process fails.
Environment
Additional context
The state-reset logic likely needs to be added to the
catchblock or afinallyclause in the frontend request handler.