diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-08-14 07:29:43 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-08-14 07:29:43 +0800 |
commit | 4e1d8ba19db729f5c282c4e3c6b43433b562a45e (patch) | |
tree | 6d8470f9289247a9f4998e44de075674486c6125 /ui/app/reducers | |
parent | 77ad856730d5b54974b86e9bed7952ff1dc10fe0 (diff) | |
download | tangerine-wallet-browser-4e1d8ba19db729f5c282c4e3c6b43433b562a45e.tar tangerine-wallet-browser-4e1d8ba19db729f5c282c4e3c6b43433b562a45e.tar.gz tangerine-wallet-browser-4e1d8ba19db729f5c282c4e3c6b43433b562a45e.tar.bz2 tangerine-wallet-browser-4e1d8ba19db729f5c282c4e3c6b43433b562a45e.tar.lz tangerine-wallet-browser-4e1d8ba19db729f5c282c4e3c6b43433b562a45e.tar.xz tangerine-wallet-browser-4e1d8ba19db729f5c282c4e3c6b43433b562a45e.tar.zst tangerine-wallet-browser-4e1d8ba19db729f5c282c4e3c6b43433b562a45e.zip |
good progress adding paths
Diffstat (limited to 'ui/app/reducers')
-rw-r--r-- | ui/app/reducers/app.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js index 98d467163..4d70d2718 100644 --- a/ui/app/reducers/app.js +++ b/ui/app/reducers/app.js @@ -67,6 +67,10 @@ function reduceApp (state, action) { isMouseUser: false, gasIsLoading: false, networkNonce: null, + defaultHdPaths: { + trezor: `m/44'/60'/0'/0`, + ledger: `m/44'/60'/0'`, + }, }, state.appState) switch (action.type) { @@ -525,6 +529,15 @@ function reduceApp (state, action) { warning: '', }) + case actions.SET_HARDWARE_WALLET_DEFAULT_HD_PATH: + const { device, path } = action.value + const newDefaults = {...appState.defaultHdPaths} + newDefaults[device] = path + + return extend(appState, { + defaultHdPaths: newDefaults, + }) + case actions.SHOW_LOADING: return extend(appState, { isLoading: true, |