aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/reducers/app.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2016-05-19 08:48:12 +0800
committerkumavis <kumavis@users.noreply.github.com>2016-05-19 08:48:12 +0800
commitfbc7a48fef0d2f8b337e0b2e7223e1bac7e05544 (patch)
treebe238b51c7f551253d57bb8c44976be471390764 /ui/app/reducers/app.js
parentc85c594d5bc6c894f6a76b66c3df33c39cc76a3a (diff)
parente64e3bbea54eeb946eeae70ced1c381ed52fa4e3 (diff)
downloadtangerine-wallet-browser-fbc7a48fef0d2f8b337e0b2e7223e1bac7e05544.tar
tangerine-wallet-browser-fbc7a48fef0d2f8b337e0b2e7223e1bac7e05544.tar.gz
tangerine-wallet-browser-fbc7a48fef0d2f8b337e0b2e7223e1bac7e05544.tar.bz2
tangerine-wallet-browser-fbc7a48fef0d2f8b337e0b2e7223e1bac7e05544.tar.lz
tangerine-wallet-browser-fbc7a48fef0d2f8b337e0b2e7223e1bac7e05544.tar.xz
tangerine-wallet-browser-fbc7a48fef0d2f8b337e0b2e7223e1bac7e05544.tar.zst
tangerine-wallet-browser-fbc7a48fef0d2f8b337e0b2e7223e1bac7e05544.zip
Merge pull request #190 from MetaMask/MenuDroppo
Drop-down menu
Diffstat (limited to 'ui/app/reducers/app.js')
-rw-r--r--ui/app/reducers/app.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js
index 0e0740c9d..2cdbaf6f3 100644
--- a/ui/app/reducers/app.js
+++ b/ui/app/reducers/app.js
@@ -22,6 +22,7 @@ function reduceApp(state, action) {
var seedWords = state.metamask.seedWords
var appState = extend({
+ menuOpen: false,
currentView: seedWords ? seedConfView : defaultView,
accountDetail: {
subview: 'transactions',
@@ -34,6 +35,16 @@ function reduceApp(state, action) {
switch (action.type) {
+ case actions.TOGGLE_MENU:
+ return extend(appState, {
+ menuOpen: !appState.menuOpen,
+ })
+
+ case actions.SET_MENU_STATE:
+ return extend(appState, {
+ menuOpen: action.value,
+ })
+
// intialize
case actions.SHOW_CREATE_VAULT: