aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-08-03 04:32:02 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-08-03 04:32:02 +0800
commitdfa10763e36f745d82fb62adc4ac42773d266da4 (patch)
tree63dce8c2aef3bea8e89b631f2426415e9ee89762 /ui/app/actions.js
parent7767f9f7ad7321d88a0b738d2c272961cc1ce286 (diff)
downloadtangerine-wallet-browser-dfa10763e36f745d82fb62adc4ac42773d266da4.tar.gz
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.js15
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,