aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-05-19 03:30:03 +0800
committerDan Finlay <dan@danfinlay.com>2016-05-19 03:30:03 +0800
commitd18d9a8f97216afae4a6c9d8d659952ed5cba765 (patch)
treef4622bd27a49bf8feaacf633ecb69ff5e9f4fdf7 /ui/app/actions.js
parent06557d7900b77a80eaa7e305d55182a6d0c10db5 (diff)
downloadtangerine-wallet-browser-d18d9a8f97216afae4a6c9d8d659952ed5cba765.tar
tangerine-wallet-browser-d18d9a8f97216afae4a6c9d8d659952ed5cba765.tar.gz
tangerine-wallet-browser-d18d9a8f97216afae4a6c9d8d659952ed5cba765.tar.bz2
tangerine-wallet-browser-d18d9a8f97216afae4a6c9d8d659952ed5cba765.tar.lz
tangerine-wallet-browser-d18d9a8f97216afae4a6c9d8d659952ed5cba765.tar.xz
tangerine-wallet-browser-d18d9a8f97216afae4a6c9d8d659952ed5cba765.tar.zst
tangerine-wallet-browser-d18d9a8f97216afae4a6c9d8d659952ed5cba765.zip
Add animated sandwich button
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r--ui/app/actions.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index f489eede7..c08019d9c 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -1,6 +1,9 @@
var actions = {
GO_HOME: 'GO_HOME',
goHome: goHome,
+ // menu state
+ TOGGLE_MENU: 'TOGGLE_MENU',
+ toggleMenu: toggleMenu,
// remote state
UPDATE_METAMASK_STATE: 'UPDATE_METAMASK_STATE',
updateMetamaskState: updateMetamaskState,
@@ -105,6 +108,14 @@ function goHome() {
}
}
+// menu state
+
+function toggleMenu() {
+ return {
+ type: this.TOGGLE_MENU,
+ }
+}
+
// async actions
function tryUnlockMetamask(password) {