fix: Confirm Delete stays disabled after a successful wallet delete, so a second delete needs a popup reopen #335
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Found while implementing #312. Pre-existing on the password route, not introduced by that change.
btn-delete-wallet-confirmis disabled before the decrypt and never re-enabled on success. Delete one wallet, then open Delete Wallet for a second one in the same popup session: the "Confirm Delete" button is dead until the popup is closed and reopened. Nothing explains why, so the screen looks broken rather than busy.Note the asymmetry this leaves behind: the "I have lost my password" route added by #312 re-enables its own button via the leave hook, so the two routes on the same screen now behave differently. That inconsistency is the strongest argument for fixing this — a reader comparing them will assume one of the two is wrong, and be unable to tell which.
Also relevant to the fix:
src/popup/views/deleteWallet.jsnow has a sharedfinishDelete()used by both routes, so there is one obvious place for the button-state reset to live.Definition of done
tests/deleteWalletLostPassword.test.js.make checkgreen.