aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/app.js
diff options
context:
space:
mode:
authorDan J Miller <danjm.com@gmail.com>2018-02-08 08:38:55 +0800
committerGitHub <noreply@github.com>2018-02-08 08:38:55 +0800
commit7f151b861cc3a565d3feefc50b3be25ab4490ac8 (patch)
tree4b0ec57e7fb316ff835748e0cabda8c2012b6345 /ui/app/app.js
parent9db0a32dac81ad071f3c15651ce5fb830d2ddf4a (diff)
downloadtangerine-wallet-browser-7f151b861cc3a565d3feefc50b3be25ab4490ac8.tar
tangerine-wallet-browser-7f151b861cc3a565d3feefc50b3be25ab4490ac8.tar.gz
tangerine-wallet-browser-7f151b861cc3a565d3feefc50b3be25ab4490ac8.tar.bz2
tangerine-wallet-browser-7f151b861cc3a565d3feefc50b3be25ab4490ac8.tar.lz
tangerine-wallet-browser-7f151b861cc3a565d3feefc50b3be25ab4490ac8.tar.xz
tangerine-wallet-browser-7f151b861cc3a565d3feefc50b3be25ab4490ac8.tar.zst
tangerine-wallet-browser-7f151b861cc3a565d3feefc50b3be25ab4490ac8.zip
[NewUI] Opens to full screen when restoring from seed. (#3201)
* Opens to full screen when restoring from seed. * Remove redundant parameter in actions.markPasswordForgotten call.
Diffstat (limited to 'ui/app/app.js')
-rw-r--r--ui/app/app.js22
1 files changed, 7 insertions, 15 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index df9eab03c..20dc65df3 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -80,7 +80,7 @@ function mapStateToProps (state) {
menuOpen: state.appState.menuOpen,
network: state.metamask.network,
provider: state.metamask.provider,
- forgottenPassword: state.appState.forgottenPassword,
+ forgottenPassword: state.metamask.forgottenPassword,
lastUnreadNotice: state.metamask.lastUnreadNotice,
lostAccounts: state.metamask.lostAccounts,
frequentRpcList: state.metamask.frequentRpcList || [],
@@ -358,20 +358,12 @@ App.prototype.renderPrimary = function () {
})
}
- // show initialize screen
- if (!props.isInitialized || props.forgottenPassword) {
- // show current view
- log.debug('rendering an initialize screen')
- switch (props.currentView.name) {
-
- case 'restoreVault':
- log.debug('rendering restore vault screen')
- return h(HDRestoreVaultScreen, {key: 'HDRestoreVaultScreen'})
-
- default:
- log.debug('rendering menu screen')
- return h(InitializeMenuScreen, {key: 'menuScreenInit'})
- }
+ if (props.isInitialized && props.forgottenPassword) {
+ log.debug('rendering restore vault screen')
+ return h(HDRestoreVaultScreen, {key: 'HDRestoreVaultScreen'})
+ } else if (!props.isInitialized) {
+ log.debug('rendering menu screen')
+ return h(InitializeMenuScreen, {key: 'menuScreenInit'})
}
// show unlock screen