diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-12-20 06:54:24 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2016-12-20 06:54:24 +0800 |
commit | 20c043a4c280891b3b1322a06887e6515a8d94fa (patch) | |
tree | 1a0d8a2dfb78c07628760ef7522b24c694d346af /ui/app/keychains | |
parent | 1b6ee56cac34cd3544fd375cad342eb8240ae8aa (diff) | |
download | tangerine-wallet-browser-20c043a4c280891b3b1322a06887e6515a8d94fa.tar tangerine-wallet-browser-20c043a4c280891b3b1322a06887e6515a8d94fa.tar.gz tangerine-wallet-browser-20c043a4c280891b3b1322a06887e6515a8d94fa.tar.bz2 tangerine-wallet-browser-20c043a4c280891b3b1322a06887e6515a8d94fa.tar.lz tangerine-wallet-browser-20c043a4c280891b3b1322a06887e6515a8d94fa.tar.xz tangerine-wallet-browser-20c043a4c280891b3b1322a06887e6515a8d94fa.tar.zst tangerine-wallet-browser-20c043a4c280891b3b1322a06887e6515a8d94fa.zip |
Redirect to seed word screen for forgotten passwords.
Diffstat (limited to 'ui/app/keychains')
-rw-r--r-- | ui/app/keychains/hd/restore-vault.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/app/keychains/hd/restore-vault.js b/ui/app/keychains/hd/restore-vault.js index 3fa25a2eb..06e51d9b3 100644 --- a/ui/app/keychains/hd/restore-vault.js +++ b/ui/app/keychains/hd/restore-vault.js @@ -14,6 +14,7 @@ function RestoreVaultScreen () { function mapStateToProps (state) { return { warning: state.appState.warning, + forgottenPassword: state.appState.forgottenPassword, } } @@ -100,14 +101,17 @@ RestoreVaultScreen.prototype.render = function () { }, 'OK'), ]), - ]) ) } RestoreVaultScreen.prototype.showInitializeMenu = function () { - this.props.dispatch(actions.showInitializeMenu()) + if (this.props.forgottenPassword) { + this.props.dispatch(actions.backToUnlockView()) + } else { + this.props.dispatch(actions.showInitializeMenu()) + } } RestoreVaultScreen.prototype.createOnEnter = function (event) { |