aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/reducers
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-06-19 23:53:33 +0800
committerDan <danjm.com@gmail.com>2018-06-19 23:53:33 +0800
commit957d729c17fcf49881d5e403afb9bfc9d0fd852a (patch)
treeb965c67d2fb20f5fc1a06155182f38d91a8c90d8 /ui/app/reducers
parent6bf09c0ffe39196ed97405001ee9a094d69a0da2 (diff)
downloadtangerine-wallet-browser-957d729c17fcf49881d5e403afb9bfc9d0fd852a.tar
tangerine-wallet-browser-957d729c17fcf49881d5e403afb9bfc9d0fd852a.tar.gz
tangerine-wallet-browser-957d729c17fcf49881d5e403afb9bfc9d0fd852a.tar.bz2
tangerine-wallet-browser-957d729c17fcf49881d5e403afb9bfc9d0fd852a.tar.lz
tangerine-wallet-browser-957d729c17fcf49881d5e403afb9bfc9d0fd852a.tar.xz
tangerine-wallet-browser-957d729c17fcf49881d5e403afb9bfc9d0fd852a.tar.zst
tangerine-wallet-browser-957d729c17fcf49881d5e403afb9bfc9d0fd852a.zip
Only show the customize gas modal if the estimateGas call is not currently in flight.
Diffstat (limited to 'ui/app/reducers')
-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 4e9d0848c..9cacf5fe7 100644
--- a/ui/app/reducers/app.js
+++ b/ui/app/reducers/app.js
@@ -62,6 +62,7 @@ function reduceApp (state, action) {
warning: null,
buyView: {},
isMouseUser: false,
+ gasIsLoading: false,
}, state.appState)
switch (action.type) {
@@ -675,6 +676,16 @@ function reduceApp (state, action) {
isMouseUser: action.value,
})
+ case actions.GAS_LOADING_STARTED:
+ return extend(appState, {
+ gasIsLoading: true,
+ })
+
+ case actions.GAS_LOADING_FINISHED:
+ return extend(appState, {
+ gasIsLoading: false,
+ })
+
default:
return appState
}