Settings page - Disconnect wallet
tselit opened this issue · comments
Context
Implement the settings page to disconnect a wallet.
A WM extension user who has previously connected their digital wallet to fund their WM payments needs to be able to disconnect their digital wallet from the WM extension.
Todos
-
For a user that already has a connected wallet address, the settings page should display the following form fields:
- the public key that was generated by the extension during installation (read-only with ability to copy the key value)
- the full address of the connected wallet (should be disabled and read-only)
- the remaining balance of the wallet (should be disabled and read-only)
- the disconnect button
-
Expire all grants / access tokens that had been issued to the extension for that wallet address.
-
For a user that has disconnected a wallet address, all the setup form fields should be enabled and allow text entry. The actions that the user can perform are to:
- view & copy the public key
- enter the wallet address
- enter the amount
- select amount type (recurring/single use)
- connecting a wallet address
Partially working (#169), but not clearing the storage properly.
Closed by #174.