diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-08-24 08:17:08 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-08-26 05:13:32 +0800 |
commit | 483a7fee0a815812ef43601f64083ed26825d0a4 (patch) | |
tree | 5a39a1dd9cd825dbcadb67688ff1cbcc923f8f10 /ui/app/reducers/app.js | |
parent | 3756384da6cb7d1566271cb99ec561d3b051a4ac (diff) | |
download | tangerine-wallet-browser-483a7fee0a815812ef43601f64083ed26825d0a4.tar tangerine-wallet-browser-483a7fee0a815812ef43601f64083ed26825d0a4.tar.gz tangerine-wallet-browser-483a7fee0a815812ef43601f64083ed26825d0a4.tar.bz2 tangerine-wallet-browser-483a7fee0a815812ef43601f64083ed26825d0a4.tar.lz tangerine-wallet-browser-483a7fee0a815812ef43601f64083ed26825d0a4.tar.xz tangerine-wallet-browser-483a7fee0a815812ef43601f64083ed26825d0a4.tar.zst tangerine-wallet-browser-483a7fee0a815812ef43601f64083ed26825d0a4.zip |
Add a back button on lock screen to go back to init menu
Diffstat (limited to 'ui/app/reducers/app.js')
-rw-r--r-- | ui/app/reducers/app.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js index 8c2696877..f982cc0c8 100644 --- a/ui/app/reducers/app.js +++ b/ui/app/reducers/app.js @@ -123,6 +123,7 @@ function reduceApp (state, action) { case actions.UNLOCK_METAMASK: return extend(appState, { + forgottenPassword: appState.forgottenPassword ? !appState.forgottenPassword : null, detailView: {}, transForward: true, isLoading: false, @@ -136,6 +137,25 @@ function reduceApp (state, action) { warning: null, }) + case actions.BACK_TO_INIT_MENU: + return extend(appState, { + warning: null, + transForward: false, + forgottenPassword: true, + currentView: { + name: 'InitMenu', + }, + }) + + case actions.BACK_TO_UNLOCK_VIEW: + return extend(appState, { + warning: null, + transForward: true, + forgottenPassword: !appState.forgottenPassword, + currentView: { + name: 'UnlockScreen', + }, + }) // reveal seed words case actions.REVEAL_SEED_CONFIRMATION: @@ -170,6 +190,7 @@ function reduceApp (state, action) { case actions.SHOW_ACCOUNT_DETAIL: return extend(appState, { + forgottenPassword: appState.forgottenPassword ? !appState.forgottenPassword : null, currentView: { name: 'accountDetail', context: action.value, |