1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 02:58:09 +01:00
metamask-extension/ui/app
Erik Marks 4b766fa538
Tighten up loading indication logic (#10103)
Ensures that `hideLoadingIndication` is always called in all actions that call `showLoadingIndication`. It's unclear how many of these actions were failing to hide the loading indication, because other actions superset `hideLoadingIndication`. 

At the very least, `updateTransaction` was probably failing to hide the loading indication in the error case.

This PR also refactors a lot of actions to call `hideLoadingIndication` once in `finally` blocks as opposed to multiple times across `try` and `catch` blocks. We avoided making changes to functions using `Promise` methods, because `Promise.finally` is not supported by Waterfox, and it's not properly transpiled by Babel.
2020-12-17 21:34:43 -08:00
..
components set last provider when switching to a customRPC (#10084) 2020-12-16 09:48:42 -06:00
contexts add new MetaMetricsController (#9857) 2020-12-02 15:41:30 -06:00
css Use 1px borders on inputs and buttons (#9766) 2020-10-30 13:31:42 -05:00
ducks Fetch swap quote refresh time from API (#10069) 2020-12-15 16:54:22 -03:30
helpers Fix fetch-with-cache handling of interwoven requests (#10079) 2020-12-15 16:51:13 -03:30
hooks Use Boolean for filters (#10066) 2020-12-14 11:03:59 -06:00
pages Fetch swap quote refresh time from API (#10069) 2020-12-15 16:54:22 -03:30
selectors Add web3 shim usage notification (#10039) 2020-12-10 15:40:29 -08:00
store Tighten up loading indication logic (#10103) 2020-12-17 21:34:43 -08:00