diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-03 14:54:21 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-03 15:01:38 +0800 |
commit | 3ed81847d1b6f00e208dbcb973cafcc633c268ad (patch) | |
tree | 808676a2c5016626e3400c54b394e71ac6c215f7 /ui/app/app.js | |
parent | c7ac20ff659bce3dbde67ad5ee4923eab8f00528 (diff) | |
download | tangerine-wallet-browser-3ed81847d1b6f00e208dbcb973cafcc633c268ad.tar tangerine-wallet-browser-3ed81847d1b6f00e208dbcb973cafcc633c268ad.tar.gz tangerine-wallet-browser-3ed81847d1b6f00e208dbcb973cafcc633c268ad.tar.bz2 tangerine-wallet-browser-3ed81847d1b6f00e208dbcb973cafcc633c268ad.tar.lz tangerine-wallet-browser-3ed81847d1b6f00e208dbcb973cafcc633c268ad.tar.xz tangerine-wallet-browser-3ed81847d1b6f00e208dbcb973cafcc633c268ad.tar.zst tangerine-wallet-browser-3ed81847d1b6f00e208dbcb973cafcc633c268ad.zip |
Isolate routing logic for isUnlocked, remove stray logs
Diffstat (limited to 'ui/app/app.js')
-rw-r--r-- | ui/app/app.js | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index c8ae28b8c..4a6e7491c 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -458,20 +458,10 @@ App.prototype.renderPrimary = function () { // show unlock screen if (!props.isUnlocked) { - switch (props.currentView.name) { - - case 'restoreVault': - log.debug('rendering restore vault screen') - return h(HDRestoreVaultScreen, {key: 'HDRestoreVaultScreen'}) - - case 'config': - log.debug('rendering config screen from unlock screen.') - return h(ConfigScreen, {key: 'config'}) - - default: - log.debug('rendering locked screen') - return h(UnlockScreen, {key: 'locked'}) - } + return h(MainContainer, { + currentViewName: props.currentView.name, + isUnlocked: props.isUnlocked, + }) } // show current view |