diff options
author | Dan J Miller <danjm.com@gmail.com> | 2018-06-28 03:57:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-28 03:57:51 +0800 |
commit | 08b69a0cb07c46a7adfa180463e97d802f24d0dd (patch) | |
tree | 0e8ae94f69204bc0443a8066b4a48ef204a26283 /ui/app/reducers | |
parent | 1839ab53461913716d573a54511a408eb7865077 (diff) | |
parent | 957d729c17fcf49881d5e403afb9bfc9d0fd852a (diff) | |
download | tangerine-wallet-browser-08b69a0cb07c46a7adfa180463e97d802f24d0dd.tar.gz tangerine-wallet-browser-08b69a0cb07c46a7adfa180463e97d802f24d0dd.tar.zst tangerine-wallet-browser-08b69a0cb07c46a7adfa180463e97d802f24d0dd.zip |
Merge pull request #4677 from MetaMask/customize-gas-loading-wait
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.js | 11 |
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 } |