mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Hides the sidebar after the an account menu actions changes the screen behind the sidebar.
This commit is contained in:
parent
339eb7d1a6
commit
0feb5b210b
@ -28,27 +28,33 @@ function mapDispatchToProps (dispatch) {
|
|||||||
toggleAccountMenu: () => dispatch(actions.toggleAccountMenu()),
|
toggleAccountMenu: () => dispatch(actions.toggleAccountMenu()),
|
||||||
showAccountDetail: address => {
|
showAccountDetail: address => {
|
||||||
dispatch(actions.showAccountDetail(address))
|
dispatch(actions.showAccountDetail(address))
|
||||||
|
dispatch(actions.hideSidebar())
|
||||||
dispatch(actions.toggleAccountMenu())
|
dispatch(actions.toggleAccountMenu())
|
||||||
},
|
},
|
||||||
lockMetamask: () => {
|
lockMetamask: () => {
|
||||||
dispatch(actions.lockMetamask())
|
dispatch(actions.lockMetamask())
|
||||||
dispatch(actions.displayWarning(null))
|
dispatch(actions.displayWarning(null))
|
||||||
|
dispatch(actions.hideSidebar())
|
||||||
dispatch(actions.toggleAccountMenu())
|
dispatch(actions.toggleAccountMenu())
|
||||||
},
|
},
|
||||||
showConfigPage: () => {
|
showConfigPage: () => {
|
||||||
dispatch(actions.showConfigPage())
|
dispatch(actions.showConfigPage())
|
||||||
|
dispatch(actions.hideSidebar())
|
||||||
dispatch(actions.toggleAccountMenu())
|
dispatch(actions.toggleAccountMenu())
|
||||||
},
|
},
|
||||||
showNewAccountModal: () => {
|
showNewAccountModal: () => {
|
||||||
dispatch(actions.showModal({ name: 'NEW_ACCOUNT' }))
|
dispatch(actions.showModal({ name: 'NEW_ACCOUNT' }))
|
||||||
|
dispatch(actions.hideSidebar())
|
||||||
dispatch(actions.toggleAccountMenu())
|
dispatch(actions.toggleAccountMenu())
|
||||||
},
|
},
|
||||||
showImportPage: () => {
|
showImportPage: () => {
|
||||||
dispatch(actions.showImportPage())
|
dispatch(actions.showImportPage())
|
||||||
|
dispatch(actions.hideSidebar())
|
||||||
dispatch(actions.toggleAccountMenu())
|
dispatch(actions.toggleAccountMenu())
|
||||||
},
|
},
|
||||||
showInfoPage: () => {
|
showInfoPage: () => {
|
||||||
dispatch(actions.showInfoPage())
|
dispatch(actions.showInfoPage())
|
||||||
|
dispatch(actions.hideSidebar())
|
||||||
dispatch(actions.toggleAccountMenu())
|
dispatch(actions.toggleAccountMenu())
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user