Repository navigation
fix(account): keep Unclaim and Unlink disabled until the list reloads - #2440
Merged
Merged
Conversation
The click handlers now return the list reload from the DELETE's .then, so the button stays disabled until the redrawn list replaces it; a click in between sent a second DELETE. An inactive repeater also carries the "no longer in the node list" note when it was recently heard or its prefix still relays, not only when silent. Follow-up to Kpa-clawbot#2430 review.
Collaborator
|
Review at Not covered, none blocking:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #2430, covering the two points from @efiten's re-review.
.then(public/account.js), so the button is re-enabled only after the redrawn list has replaced it. Before, a click between the DELETE's answer and the list GET's answer sent a second DELETE.repeaterHealthadds "no longer in the node list" wheneverr.inactiveis set, so an inactive repeater that was heard recently or whose prefix still relays is marked too, not only a silent one.Tests (
tests/unit/test-user-management-ui.js, 103/103):tests/e2e/test-lint-network-calls.js47/47.