Skip to content

frontend: The button keep showing Generating... and disabled. #42

@GTPSHAX

Description

@GTPSHAX

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

  1. Fill in all required fields.
  2. Click the button to generate the DOCX file.
  3. Trigger a generation failure (e.g., via server error or invalid input).
  4. 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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions