diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-11-18 06:27:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-18 06:27:34 +0800 |
commit | 6400eb8453c173e04e59d7990bd2c79afb3493be (patch) | |
tree | ecb311d43d0f77d5f5f0e82a0014a09c6381f0ef /ui/app/reducers | |
parent | 115fdc36fefd33e4bf4a9e551dd6267d3d75f2c5 (diff) | |
parent | 4352c7031afb6f9a175b29d0addeb7ea48345676 (diff) | |
download | tangerine-wallet-browser-6400eb8453c173e04e59d7990bd2c79afb3493be.tar tangerine-wallet-browser-6400eb8453c173e04e59d7990bd2c79afb3493be.tar.gz tangerine-wallet-browser-6400eb8453c173e04e59d7990bd2c79afb3493be.tar.bz2 tangerine-wallet-browser-6400eb8453c173e04e59d7990bd2c79afb3493be.tar.lz tangerine-wallet-browser-6400eb8453c173e04e59d7990bd2c79afb3493be.tar.xz tangerine-wallet-browser-6400eb8453c173e04e59d7990bd2c79afb3493be.tar.zst tangerine-wallet-browser-6400eb8453c173e04e59d7990bd2c79afb3493be.zip |
Merge pull request #816 from MetaMask/i328-MultiVault
Multi vault to Dev Branch
Diffstat (limited to 'ui/app/reducers')
-rw-r--r-- | ui/app/reducers/app.js | 18 | ||||
-rw-r--r-- | ui/app/reducers/metamask.js | 8 |
2 files changed, 12 insertions, 14 deletions
diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js index c2ac099a6..ca450fd89 100644 --- a/ui/app/reducers/app.js +++ b/ui/app/reducers/app.js @@ -29,13 +29,10 @@ function reduceApp (state, action) { name: 'createVaultComplete', seedWords, } - var ethStoreWarning = { - name: 'EthStoreWarning', - } var appState = extend({ menuOpen: false, - currentView: seedWords ? seedConfView : !state.metamask.isEthConfirmed ? ethStoreWarning : defaultView, + currentView: seedWords ? seedConfView : defaultView, accountDetail: { subview: 'transactions', }, @@ -119,6 +116,15 @@ function reduceApp (state, action) { warning: null, }) + case actions.SHOW_NEW_KEYCHAIN: + return extend(appState, { + currentView: { + name: 'newKeychain', + context: appState.currentView.context, + }, + transForward: true, + }) + // unlock case actions.UNLOCK_METAMASK: @@ -272,7 +278,6 @@ function reduceApp (state, action) { warning: null, }) } else { - notification.closePopup() return extend(appState, { @@ -329,7 +334,7 @@ function reduceApp (state, action) { case actions.UNLOCK_FAILED: return extend(appState, { - warning: 'Incorrect password. Try again.', + warning: action.value || 'Incorrect password. Try again.', }) case actions.SHOW_LOADING: @@ -540,4 +545,3 @@ function indexForPending (state, txId) { }) return idx } - diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js index 84953d734..82904dcc6 100644 --- a/ui/app/reducers/metamask.js +++ b/ui/app/reducers/metamask.js @@ -10,7 +10,6 @@ function reduceMetamask (state, action) { var metamaskState = extend({ isInitialized: false, isUnlocked: false, - isEthConfirmed: false, rpcTarget: 'https://rawtestrpc.metamask.io/', identities: {}, unconfTxs: {}, @@ -31,12 +30,7 @@ function reduceMetamask (state, action) { case actions.AGREE_TO_DISCLAIMER: return extend(metamaskState, { - isConfirmed: true, - }) - - case actions.AGREE_TO_ETH_WARNING: - return extend(metamaskState, { - isEthConfirmed: !metamaskState.isEthConfirmed, + isDisclaimerConfirmed: true, }) case actions.UNLOCK_METAMASK: |