aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-05-19 05:36:35 +0800
committerDan Finlay <dan@danfinlay.com>2016-05-19 05:36:35 +0800
commitd0b0526765000ab6f56e8c35545d66a760ed7b61 (patch)
treeac4645eed33a65e5b3a3419a3b225cbc7738c6b5 /ui/app/actions.js
parent79e595754f4a5da6875c07402f2b732146384f3a (diff)
downloadtangerine-wallet-browser-d0b0526765000ab6f56e8c35545d66a760ed7b61.tar
tangerine-wallet-browser-d0b0526765000ab6f56e8c35545d66a760ed7b61.tar.gz
tangerine-wallet-browser-d0b0526765000ab6f56e8c35545d66a760ed7b61.tar.bz2
tangerine-wallet-browser-d0b0526765000ab6f56e8c35545d66a760ed7b61.tar.lz
tangerine-wallet-browser-d0b0526765000ab6f56e8c35545d66a760ed7b61.tar.xz
tangerine-wallet-browser-d0b0526765000ab6f56e8c35545d66a760ed7b61.tar.zst
tangerine-wallet-browser-d0b0526765000ab6f56e8c35545d66a760ed7b61.zip
Add dynamic list item styles
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r--ui/app/actions.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index c08019d9c..ee5e417d4 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -4,6 +4,8 @@ var actions = {
// menu state
TOGGLE_MENU: 'TOGGLE_MENU',
toggleMenu: toggleMenu,
+ SET_MENU_STATE: 'SET_MENU_STATE',
+ closeMenu: closeMenu,
// remote state
UPDATE_METAMASK_STATE: 'UPDATE_METAMASK_STATE',
updateMetamaskState: updateMetamaskState,
@@ -116,6 +118,13 @@ function toggleMenu() {
}
}
+function closeMenu() {
+ return {
+ type: this.SET_MENU_STATE,
+ value: false,
+ }
+}
+
// async actions
function tryUnlockMetamask(password) {