1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 18:41:38 +01:00
metamask-extension/ui/app/pages
Mark Stacey 53feb20803
Alert user upon switching to unconnected account (#8312)
An alert is now shown when the user switches from an account that is
connected to the active tab to an account that is not connected. The
alert prompts the user to dismiss the alert or connect the account
they're switching to.

The "loading" state is handled by disabling the buttons, and the error
state is handled by displaying a generic error message and disabling
the connect button.

The new reducer for this alert has been created with `createSlice` from
the Redux Toolkit. This utility is recommended by the Redux team, and
represents a new style of writing reducers that I hope we will use more
in the future (or at least something similar). `createSlice` constructs
a reducer, actions, and action creators automatically. The reducer is
constructed using their `createReducer` helper, which uses Immer to
allow directly mutating the state in the reducer but exposing these
changes as immutable.
2020-04-29 14:10:51 -03:00
..
add-token Enable arrow-parens ESLint rule 2020-02-15 17:04:21 -03:30
confirm-add-suggested-token Remove faux <header> elements (#8131) 2020-02-27 18:00:20 -04:00
confirm-add-token Remove faux <header> elements (#8131) 2020-02-27 18:00:20 -04:00
confirm-approve Enable react/jsx-first-prop-new-line for multiline, single prop JSX (#8276) 2020-04-01 18:08:19 -02:30
confirm-decrypt-message LoginPerSite: Support multiple accounts without automatic switching (#8079) 2020-03-06 13:34:56 -08:00
confirm-deploy-contract Enable arrow-parens ESLint rule 2020-02-15 17:04:21 -03:30
confirm-encryption-public-key LoginPerSite: Support multiple accounts without automatic switching (#8079) 2020-03-06 13:34:56 -08:00
confirm-send-ether LoginPerSite: Support multiple accounts without automatic switching (#8079) 2020-03-06 13:34:56 -08:00
confirm-send-token LoginPerSite: Support multiple accounts without automatic switching (#8079) 2020-03-06 13:34:56 -08:00
confirm-token-transaction-base LoginPerSite: Support multiple accounts without automatic switching (#8079) 2020-03-06 13:34:56 -08:00
confirm-transaction LoginPerSite: Support multiple accounts without automatic switching (#8079) 2020-03-06 13:34:56 -08:00
confirm-transaction-base Rename addressSlicer function to shortenAddress (#8408) 2020-04-24 09:52:09 -07:00
confirm-transaction-switch Implementation encrypt/decrypt feature (#7831) 2020-02-19 14:24:16 -04:00
connected-sites Fix Connected Sites data selector (#8310) 2020-04-08 20:38:48 -02:30
create-account Remove leftover references to Coinbase (#8403) 2020-04-23 20:32:15 -03:00
error Add top-level error page (#7889) 2020-01-24 17:11:02 -04:00
first-time-flow Make seed phrase import case-insensitive (#8246) 2020-03-30 10:21:04 -02:30
home Delete Dai/Sai migration notification (#8418) 2020-04-27 16:23:43 -02:30
keychains Remove faux <header> elements (#8131) 2020-02-27 18:00:20 -04:00
lock Remove recompose (#8097) 2020-02-24 19:28:26 -03:30
mobile-sync Add Idle Timeout for Sync with mobile (#8201) 2020-03-24 01:00:59 -04:00
permissions-connect Route to home page after connecting in popup (#8357) 2020-04-17 12:48:13 -07:00
routes Alert user upon switching to unconnected account (#8312) 2020-04-29 14:10:51 -03:00
send Return Promise from addToAddressBook thunk (#8450) 2020-04-29 01:59:49 -03:00
settings Return Promise from removeFromAddressBook thunk (#8451) 2020-04-29 09:36:10 -03:00
unlock-page Await completion of markPasswordForgotten (#8381) 2020-04-22 16:15:22 -03:00
index.js Migrate "i18n-provider" to new context API (#8213) 2020-03-23 14:07:05 -03:00
index.scss Update Connected Sites modal design (#8262) 2020-03-31 19:40:02 -02:30