diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-03 04:32:02 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-03 04:32:02 +0800 |
commit | dfa10763e36f745d82fb62adc4ac42773d266da4 (patch) | |
tree | 63dce8c2aef3bea8e89b631f2426415e9ee89762 /ui/app/actions.js | |
parent | 7767f9f7ad7321d88a0b738d2c272961cc1ce286 (diff) | |
download | tangerine-wallet-browser-dfa10763e36f745d82fb62adc4ac42773d266da4.tar tangerine-wallet-browser-dfa10763e36f745d82fb62adc4ac42773d266da4.tar.gz tangerine-wallet-browser-dfa10763e36f745d82fb62adc4ac42773d266da4.tar.bz2 tangerine-wallet-browser-dfa10763e36f745d82fb62adc4ac42773d266da4.tar.lz tangerine-wallet-browser-dfa10763e36f745d82fb62adc4ac42773d266da4.tar.xz tangerine-wallet-browser-dfa10763e36f745d82fb62adc4ac42773d266da4.tar.zst tangerine-wallet-browser-dfa10763e36f745d82fb62adc4ac42773d266da4.zip |
Integrate slideout menu with tx view
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r-- | ui/app/actions.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js index 0083543b4..d3d6c165e 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -8,6 +8,8 @@ var actions = { // sidebar state SIDEBAR_OPEN: 'UI_SIDEBAR_OPEN', SIDEBAR_CLOSE: 'UI_SIDEBAR_CLOSE', + showSidebar: showSidebar, + hideSidebar: hideSidebar, // menu state getNetworkStatus: 'getNetworkStatus', // transition state @@ -763,6 +765,19 @@ function useEtherscanProvider () { } } +function showSidebar () { + return { + type: actions.SIDEBAR_OPEN, + } +} + +function hideSidebar () { + return { + type: actions.SIDEBAR_CLOSE, + } +} + + function showLoadingIndication (message) { return { type: actions.SHOW_LOADING, |