1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/app/scripts
Brad Decker 2f50e9fd72
Restore timing function (#8774)
* restore and enhance the time est feature

background: we had a feature for showing a time estimate on pending txs
that was accidently removed during the redesign implementation. This PR
restores that feature and also enhances it:
1. Displays the time estimate on all views instead of just fullscreen
2. Uses Intl.RelativeTimeFormat to format the time
3. Adds a way to toggle the feature flag.
4. Uses a hook to calculate the time remaining instead of a component

* Update app/_locales/en/messages.json

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* do not display on test nets

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2020-06-12 13:46:01 -05:00
..
account-import-strategies Clean up "JSON File" import strategy test output (#7855) 2020-01-17 19:59:47 -03:30
controllers Remove 2nd parameter from the call of estimateTxGas (#8783) 2020-06-11 10:16:50 -02:30
lib Add MESSAGE_TYPE enum (#8743) 2020-06-04 16:22:45 -03:00
migrations Delete the ABTestController and its state (#8620) 2020-05-19 13:27:06 -02:30
platforms Move export defaults statements alongside their objects (#8525) 2020-05-05 19:49:38 -02:30
background.js Remove some unused state keys (#8776) 2020-06-10 14:51:12 -02:30
chromereload.js Fix console.error references 2016-08-29 17:32:39 -07:00
contentscript.js blocklisted -> blocked 2020-06-08 17:57:59 -07:00
first-time-state.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
inpage.js Define global web3 as non-enumerable (#8634) 2020-05-20 20:18:25 -07:00
metamask-controller.js Delete unused InfuraController & tests (#8773) 2020-06-10 11:44:04 -02:30
phishing-detect.js blacklist -> blocklist; whitelist -> safelist 2020-06-08 17:49:36 -07:00
ui.js Restore timing function (#8774) 2020-06-12 13:46:01 -05:00