HomePhabricator

[Cashtab] [wallet mgmt improvements p1] Add UI locking to settings page

Description

[Cashtab] [wallet mgmt improvements p1] Add UI locking to settings page

Summary:
T2822

The UI of Configure.js should be locked while async operations that impact wallet data are performed. This diff uses the same approach implemented in Send.js and SendToken.js for locking the UI until the utxo set refreshes. In this case, it is applied to lock the UI until savedWallet state variable has updated.

Test Plan:
npm start
Navigate to settings page
Activate a different wallet
In the dev console, note msg savedWallets from useEffect in Configure.js updated, unlocking UI
Test for the same in the extension by building it locally

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

Differential Revision: https://reviews.bitcoinabc.org/D12841

Details

Provenance
bytesofmanAuthored on Dec 10 2022, 17:59
bytesofmanPushed on Dec 11 2022, 05:51
Reviewer
Restricted Project
Differential Revision
D12841: [Cashtab] [wallet mgmt improvements p1] Add UI locking to settings page
Parents
rABC16fc8ef2f07c: [Cashtab] [final countdown bch param p4 thru p7]
Branches
Unknown
Tags
Unknown