consistency: export-privkey and delete-wallet buttons not disabled during async processing #86
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/AutistMask#86
Loading…
Reference in New Issue
Block a user
No description provided.
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?
Problem
The export private key (
#btn-export-privkey-confirm) and delete wallet (#btn-delete-wallet-confirm) buttons are not disabled while the password is being verified asynchronously. This means a user could double-click and trigger multiple decrypt/delete operations.By contrast,
confirm-tx,approve-tx, andapprove-signall disable their buttons during processing.Expected behavior
All buttons that trigger async password verification should be disabled (with
text-mutedclass) during processing and re-enabled afterward.Files affected
src/popup/views/addressDetail.js(export private key button handler)src/popup/views/deleteWallet.js(delete wallet button handler)Suggested fix
Add
button.disabled = true; button.classList.add("text-muted");before the async operation and re-enable in afinallyblock.Found during consistency audit for #78.
This is already fixed on
mainin commit886cd38("fix: disable export-privkey and delete-wallet buttons during async processing"). Bothbtn-export-privkey-confirmandbtn-delete-wallet-confirmnow havebutton.disabled = true; button.classList.add("text-muted")before async operations with re-enable infinally/error paths.Closing as resolved.