diff options
author | Dan Miller <danjm.com@gmail.com> | 2018-11-14 01:02:04 +0800 |
---|---|---|
committer | Dan Miller <danjm.com@gmail.com> | 2018-12-04 11:36:22 +0800 |
commit | 7ffea926f23b2542c5182df7958defcdd9398b04 (patch) | |
tree | 81ebaea6a741402c7462736ea850d79b11b21088 /ui/app/selectors/custom-gas.js | |
parent | 7f2c5c09de67a67972fcbaae254d39aac6c96f56 (diff) | |
download | tangerine-wallet-browser-7ffea926f23b2542c5182df7958defcdd9398b04.tar tangerine-wallet-browser-7ffea926f23b2542c5182df7958defcdd9398b04.tar.gz tangerine-wallet-browser-7ffea926f23b2542c5182df7958defcdd9398b04.tar.bz2 tangerine-wallet-browser-7ffea926f23b2542c5182df7958defcdd9398b04.tar.lz tangerine-wallet-browser-7ffea926f23b2542c5182df7958defcdd9398b04.tar.xz tangerine-wallet-browser-7ffea926f23b2542c5182df7958defcdd9398b04.tar.zst tangerine-wallet-browser-7ffea926f23b2542c5182df7958defcdd9398b04.zip |
Add loading spinners when waiting for APIs in the gas customization modal
Diffstat (limited to 'ui/app/selectors/custom-gas.js')
-rw-r--r-- | ui/app/selectors/custom-gas.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/app/selectors/custom-gas.js b/ui/app/selectors/custom-gas.js index f06fb710d..ec234500d 100644 --- a/ui/app/selectors/custom-gas.js +++ b/ui/app/selectors/custom-gas.js @@ -33,6 +33,7 @@ const selectors = { getDefaultActiveButtonIndex, getEstimatedGasPrices, getEstimatedGasTimes, + getGasEstimatesLoadingStatus, getPriceAndTimeEstimates, getRenderableBasicEstimateData, getRenderableEstimateDataForSmallButtonsFromGWEI, @@ -63,6 +64,10 @@ function getBasicGasEstimateLoadingStatus (state) { return state.gas.basicEstimateIsLoading } +function getGasEstimatesLoadingStatus (state) { + return state.gas.gasEstimatesLoading +} + function getPriceAndTimeEstimates (state) { return state.gas.priceAndTimeEstimates } |