-
Clicking "Add new wallet" button opens the modal.
- Clicking the "X" icon closes the modal.
-
Modal "Add new wallet" form:
- Makes request to
GET"/wallets"
and shows spinner while request is in process. - Shows "Network errror" and "Try again" button when request to
GET "/wallets"
fails. - Clicking "Try again" button makes request to
GET "/wallets"
.
- Makes request to
-
Modal "Add new wallet" form (after
GET /wallets
is successful):- "Add new wallet" form renders, a select element with the returned wallets is displayed.
- "Create wallet" button is displayed.
-
Calls
POST "/accounts"
with wallet currency handles success (after selecting wallet):data: {"currency": "BTC"}
- After clicking "Create wallet" button, the modal closes and the added wallet is rendered in the list.
-
Calls
POST "/accounts"
with wallet currency and handles error (after selecting wallet):