Skip to content

Conversation

@susnux
Copy link
Collaborator

@susnux susnux commented Oct 15, 2025

Before this the promise of spawnDialog was awaited so it never resolved, because the dialog did not close until axios succeeded. And axios only continued when the dialog was closed...

Instead add a module scope variable to keep track of an already open password confirmation dialog and reuse it if the password is invalid.

Copy link
Collaborator

@artonge artonge left a comment

Choose a reason for hiding this comment

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

Looks ok.

Not sure how it was working before... 🤔

@susnux
Copy link
Collaborator Author

susnux commented Oct 16, 2025

Not sure how it was working before... 🤔

I think it was not its something only broken in v6

Before this the promise of `spawnDialog` was awaited so it never
resolved, because the dialog did not close until axios succeeded.
And axios only continued when the dialog was closed...

Instead add a module scope variable to keep track of an already open
password confirmation dialog and reuse it if the password is invalid.

Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux
Copy link
Collaborator Author

susnux commented Oct 16, 2025

(before merge I test this in server right now)

@susnux susnux force-pushed the fix/confirm-password branch from e7e018a to 0e9a6ec Compare October 16, 2025 11:53
@susnux
Copy link
Collaborator Author

susnux commented Oct 16, 2025

Squashed the commits - tested locally with server and works fine ✅

@susnux susnux merged commit c2f9f77 into main Oct 16, 2025
9 checks passed
@susnux susnux deleted the fix/confirm-password branch October 16, 2025 11:59
@susnux susnux mentioned this pull request Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants