Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable modal buttons when in progress #1532

Merged
merged 4 commits into from
Nov 11, 2024

Conversation

VilppeRiskidev
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@anttimaki anttimaki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brownie points for the separation of commits 👍🏻

Create/rename forms can be submitted with enter, and as they do an extra check before calling the method that sets the xInProgress variable, they can be triggered twice. I realise that double-submit with enter is less likely than with a mouse click, but for completeness sake we could start the keyup.enter methods with !xInProgress?

Copy link
Collaborator

@anttimaki anttimaki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not exactly what I suggested but works for me so let's go.

@anttimaki anttimaki merged commit e56097f into develop Nov 11, 2024
5 checks passed
@anttimaki anttimaki deleted the disable-modal-buttons-when-in-progress branch November 11, 2024 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants