aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/reducers
diff options
context:
space:
mode:
authorDan J Miller <danjm.com@gmail.com>2018-03-03 10:14:05 +0800
committerGitHub <noreply@github.com>2018-03-03 10:14:05 +0800
commit0d97ff221017b78ccfa02defdb7a52ad701981a5 (patch)
tree76963deed2ee585c79a3dac92b50cd374c012e60 /ui/app/reducers
parent0c163dcb32ddafde8a8ed3e9e21be552a5eeeed5 (diff)
downloadtangerine-wallet-browser-0d97ff221017b78ccfa02defdb7a52ad701981a5.tar
tangerine-wallet-browser-0d97ff221017b78ccfa02defdb7a52ad701981a5.tar.gz
tangerine-wallet-browser-0d97ff221017b78ccfa02defdb7a52ad701981a5.tar.bz2
tangerine-wallet-browser-0d97ff221017b78ccfa02defdb7a52ad701981a5.tar.lz
tangerine-wallet-browser-0d97ff221017b78ccfa02defdb7a52ad701981a5.tar.xz
tangerine-wallet-browser-0d97ff221017b78ccfa02defdb7a52ad701981a5.tar.zst
tangerine-wallet-browser-0d97ff221017b78ccfa02defdb7a52ad701981a5.zip
Fix NewUI reveal seed flow. (#3410)
Diffstat (limited to 'ui/app/reducers')
-rw-r--r--ui/app/reducers/app.js4
-rw-r--r--ui/app/reducers/metamask.js7
2 files changed, 8 insertions, 3 deletions
diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js
index 02f024f7c..4dda839a2 100644
--- a/ui/app/reducers/app.js
+++ b/ui/app/reducers/app.js
@@ -140,10 +140,10 @@ function reduceApp (state, action) {
case actions.FORGOT_PASSWORD:
return extend(appState, {
currentView: {
- name: 'restoreVault',
+ name: action.value ? 'restoreVault' : 'accountDetail',
},
transForward: false,
- forgottenPassword: true,
+ forgottenPassword: action.value,
})
case actions.SHOW_INIT_MENU:
diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js
index beeba948d..cddcd0c1f 100644
--- a/ui/app/reducers/metamask.js
+++ b/ui/app/reducers/metamask.js
@@ -43,12 +43,15 @@ function reduceMetamask (state, action) {
useBlockie: false,
featureFlags: {},
networkEndpointType: OLD_UI_NETWORK_TYPE,
+ isRevealingSeedWords: false,
}, state.metamask)
switch (action.type) {
case actions.SHOW_ACCOUNTS_PAGE:
- newState = extend(metamaskState)
+ newState = extend(metamaskState, {
+ isRevealingSeedWords: false,
+ })
delete newState.seedWords
return newState
@@ -124,10 +127,12 @@ function reduceMetamask (state, action) {
},
})
+
case actions.SHOW_NEW_VAULT_SEED:
return extend(metamaskState, {
isUnlocked: true,
isInitialized: false,
+ isRevealingSeedWords: true,
seedWords: action.value,
})