aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/keychains/hd/restore-vault.js
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-12-20 08:01:01 +0800
committerGitHub <noreply@github.com>2016-12-20 08:01:01 +0800
commitead8329877c5441f32ab389adb41689086a38608 (patch)
tree6ddf346b7627ea0556db2e94a8164dfa5a34e6ae /ui/app/keychains/hd/restore-vault.js
parentf7eec0b282de511d54fd50f2c75d7371ca6f399d (diff)
parent9c8345467c871b29193263a13e8e8d3ebb47c7fb (diff)
downloadtangerine-wallet-browser-ead8329877c5441f32ab389adb41689086a38608.tar.gz
tangerine-wallet-browser-ead8329877c5441f32ab389adb41689086a38608.tar.zst
tangerine-wallet-browser-ead8329877c5441f32ab389adb41689086a38608.zip
Merge pull request #937 from MetaMask/i900-forgot-password-flow
I900 forgot password flow
Diffstat (limited to 'ui/app/keychains/hd/restore-vault.js')
-rw-r--r--ui/app/keychains/hd/restore-vault.js8
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) {