Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.35 KB

add-wallet.md

File metadata and controls

33 lines (21 loc) · 1.35 KB

Add Wallet

Requirements

  • Clicking "Add new wallet" button opens the modal.

    • Clicking the "X" icon closes the modal.

    "Add new Wallet" form

  • 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".

    "Add new Wallet Modal" fething wallets

  • 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.

    "Add new Wallet" form

  • 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):

    POST "/accounts" error