fix: standardize error display to use showError/hideError helpers #90
No reviewers
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/AutistMask#90
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/87-consistent-error-display"
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?
Replace three inconsistent error display patterns with the centralized
showError()/hideError()helpers fromhelpers.js.Changes:
approval.js: replace direct DOM classList toggling withshowError/hideErroraddressDetail.js: replaceexport-privkey-flashdirect DOM withshowError/hideError(element renamed toexport-privkey-error)deleteWallet.js: replacedelete-wallet-flashdirect DOM withshowError/hideError(element renamed todelete-wallet-error, removed inconsistenttext-red-500)addWallet.js: replaceshowFlash()validation errors with dedicatedadd-wallet-errordivimportKey.js: replaceshowFlash()validation errors with dedicatedimport-key-errordivindex.html: add error divs for add-wallet and import-key views, rename flash elements to error elementsdocker build .passes.Closes #87
Closing as duplicate of #88.
Pull request closed