aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/account-menu
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-12-21 01:49:13 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-12-21 02:17:29 +0800
commit0feb5b210b81533fc25c4760ce33876b4c749247 (patch)
tree60e653be2a9e11445a383964f90492488c560f02 /ui/app/components/account-menu
parent339eb7d1a687f141e822c745c568063783d44f15 (diff)
downloadtangerine-wallet-browser-0feb5b210b81533fc25c4760ce33876b4c749247.tar
tangerine-wallet-browser-0feb5b210b81533fc25c4760ce33876b4c749247.tar.gz
tangerine-wallet-browser-0feb5b210b81533fc25c4760ce33876b4c749247.tar.bz2
tangerine-wallet-browser-0feb5b210b81533fc25c4760ce33876b4c749247.tar.lz
tangerine-wallet-browser-0feb5b210b81533fc25c4760ce33876b4c749247.tar.xz
tangerine-wallet-browser-0feb5b210b81533fc25c4760ce33876b4c749247.tar.zst
tangerine-wallet-browser-0feb5b210b81533fc25c4760ce33876b4c749247.zip
Hides the sidebar after the an account menu actions changes the screen behind the sidebar.
Diffstat (limited to 'ui/app/components/account-menu')
-rw-r--r--ui/app/components/account-menu/index.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/app/components/account-menu/index.js b/ui/app/components/account-menu/index.js
index a9f075ec7..286a3b587 100644
--- a/ui/app/components/account-menu/index.js
+++ b/ui/app/components/account-menu/index.js
@@ -28,27 +28,33 @@ function mapDispatchToProps (dispatch) {
toggleAccountMenu: () => dispatch(actions.toggleAccountMenu()),
showAccountDetail: address => {
dispatch(actions.showAccountDetail(address))
+ dispatch(actions.hideSidebar())
dispatch(actions.toggleAccountMenu())
},
lockMetamask: () => {
dispatch(actions.lockMetamask())
dispatch(actions.displayWarning(null))
+ dispatch(actions.hideSidebar())
dispatch(actions.toggleAccountMenu())
},
showConfigPage: () => {
dispatch(actions.showConfigPage())
+ dispatch(actions.hideSidebar())
dispatch(actions.toggleAccountMenu())
},
showNewAccountModal: () => {
dispatch(actions.showModal({ name: 'NEW_ACCOUNT' }))
+ dispatch(actions.hideSidebar())
dispatch(actions.toggleAccountMenu())
},
showImportPage: () => {
dispatch(actions.showImportPage())
+ dispatch(actions.hideSidebar())
dispatch(actions.toggleAccountMenu())
},
showInfoPage: () => {
dispatch(actions.showInfoPage())
+ dispatch(actions.hideSidebar())
dispatch(actions.toggleAccountMenu())
},
}