diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-09 04:37:16 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-09 04:37:16 +0800 |
commit | aab0fda9acf58c638a03a43de4260c079adf258f (patch) | |
tree | f721c850bcf53f2b1b8b06065d16c00bdce84609 /ui/app/reducers | |
parent | da51f56df9dfdc67f6ac3e37a3a248f749230c10 (diff) | |
download | tangerine-wallet-browser-aab0fda9acf58c638a03a43de4260c079adf258f.tar tangerine-wallet-browser-aab0fda9acf58c638a03a43de4260c079adf258f.tar.gz tangerine-wallet-browser-aab0fda9acf58c638a03a43de4260c079adf258f.tar.bz2 tangerine-wallet-browser-aab0fda9acf58c638a03a43de4260c079adf258f.tar.lz tangerine-wallet-browser-aab0fda9acf58c638a03a43de4260c079adf258f.tar.xz tangerine-wallet-browser-aab0fda9acf58c638a03a43de4260c079adf258f.tar.zst tangerine-wallet-browser-aab0fda9acf58c638a03a43de4260c079adf258f.zip |
Add actions and reducers for global modal
Diffstat (limited to 'ui/app/reducers')
-rw-r--r-- | ui/app/reducers/app.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js index bf1de4577..ac8cbf158 100644 --- a/ui/app/reducers/app.js +++ b/ui/app/reducers/app.js @@ -36,6 +36,7 @@ function reduceApp (state, action) { var appState = extend({ shouldClose: false, menuOpen: false, + modalOpen: false, sidebarOpen: false, currentView: seedWords ? seedConfView : defaultView, accountDetail: { @@ -58,6 +59,17 @@ function reduceApp (state, action) { sidebarOpen: false, }) + // modal methods: + case actions.MODAL_OPEN: + return extend(appState, { + modalOpen: true, + }) + + case actions.MODAL_CLOSE: + return extend(appState, { + modalOpen: false, + }) + // transition methods case actions.TRANSITION_FORWARD: |