diff options
author | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-16 13:28:25 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-18 13:38:00 +0800 |
commit | 5ee6e4d3b3d61d804340c22b73a608fb6b44a9b2 (patch) | |
tree | 1020f2895a6a8368a2f50597c8bf86512b98a5a9 /ui/app/reducers | |
parent | ac43872c1a1468057974648c8ae90bf1edd708d7 (diff) | |
download | tangerine-wallet-browser-5ee6e4d3b3d61d804340c22b73a608fb6b44a9b2.tar tangerine-wallet-browser-5ee6e4d3b3d61d804340c22b73a608fb6b44a9b2.tar.gz tangerine-wallet-browser-5ee6e4d3b3d61d804340c22b73a608fb6b44a9b2.tar.bz2 tangerine-wallet-browser-5ee6e4d3b3d61d804340c22b73a608fb6b44a9b2.tar.lz tangerine-wallet-browser-5ee6e4d3b3d61d804340c22b73a608fb6b44a9b2.tar.xz tangerine-wallet-browser-5ee6e4d3b3d61d804340c22b73a608fb6b44a9b2.tar.zst tangerine-wallet-browser-5ee6e4d3b3d61d804340c22b73a608fb6b44a9b2.zip |
wip
Diffstat (limited to 'ui/app/reducers')
-rw-r--r-- | ui/app/reducers/metamask.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js index cc24a6729..a9a54e91e 100644 --- a/ui/app/reducers/metamask.js +++ b/ui/app/reducers/metamask.js @@ -10,6 +10,7 @@ function reduceMetamask (state, action) { var metamaskState = extend({ isInitialized: false, isUnlocked: false, + isAccountMenuOpen: false, rpcTarget: 'https://rawtestrpc.metamask.io/', identities: {}, unapprovedTxs: {}, @@ -172,6 +173,11 @@ function reduceMetamask (state, action) { }, }) + case actions.TOGGLE_ACCOUNT_MENU: + return extend(metamaskState, { + isAccountMenuOpen: !metamaskState.isAccountMenuOpen, + }) + default: return metamaskState |