fix(frontend): return early from in-flight actions so a double click sends one request #1
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/double-submit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Every panel set
busyand relied on the disabled button, which lands a frame after a fast double click.discard-latestpops the newest edit on each call, so a double click discarded two edits.The fix adds an early return to every panel, the command bar, player actions and the directory picker.
NewServerPage needed more than a guard:
choose()re-entered itself throughloadPackVersions(), so a plain guard would have skipped the inner call. The pack resolve is now a separate, unguarded function, and the Use button keepsbusyon across both steps.Checks: 400 tests pass, svelte-check has 0 errors, and
deno fmt --checkis clean.🤖 Generated with Claude Code