aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send/gas-fee-display-v2.js
diff options
context:
space:
mode:
authorThomas <tmashuang@gmail.com>2018-03-21 02:35:59 +0800
committerThomas <tmashuang@gmail.com>2018-03-21 02:35:59 +0800
commitd4eb883958e7c13029726484e61d1db01b77d0ff (patch)
treeabe3938f6426040bcb01464bceb74316fd7107e1 /ui/app/components/send/gas-fee-display-v2.js
parent2c42cfdf1e8c8aff517cae9f6011dd39e503cef3 (diff)
parent716e034c75c53bbcc0d81a36c2eadf140c53ca9c (diff)
downloadtangerine-wallet-browser-d4eb883958e7c13029726484e61d1db01b77d0ff.tar
tangerine-wallet-browser-d4eb883958e7c13029726484e61d1db01b77d0ff.tar.gz
tangerine-wallet-browser-d4eb883958e7c13029726484e61d1db01b77d0ff.tar.bz2
tangerine-wallet-browser-d4eb883958e7c13029726484e61d1db01b77d0ff.tar.lz
tangerine-wallet-browser-d4eb883958e7c13029726484e61d1db01b77d0ff.tar.xz
tangerine-wallet-browser-d4eb883958e7c13029726484e61d1db01b77d0ff.tar.zst
tangerine-wallet-browser-d4eb883958e7c13029726484e61d1db01b77d0ff.zip
Merge branch 'master' into i3571-CompleteI18nTemplates
Diffstat (limited to 'ui/app/components/send/gas-fee-display-v2.js')
-rw-r--r--ui/app/components/send/gas-fee-display-v2.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/ui/app/components/send/gas-fee-display-v2.js b/ui/app/components/send/gas-fee-display-v2.js
index 0c6f76303..f6af13454 100644
--- a/ui/app/components/send/gas-fee-display-v2.js
+++ b/ui/app/components/send/gas-fee-display-v2.js
@@ -18,6 +18,7 @@ GasFeeDisplay.prototype.render = function () {
onClick,
primaryCurrency = 'ETH',
convertedCurrency,
+ gasLoadingError,
} = this.props
return h('div.send-v2__gas-fee-display', [
@@ -31,13 +32,15 @@ GasFeeDisplay.prototype.render = function () {
convertedPrefix: '$',
readOnly: true,
})
- : h('div.currency-display', t('loading')),
+ : gasLoadingError
+ ? h('div..currency-display.currency-display--message', 'Set with the gas price customizer.')
+ : h('div.currency-display', t('loading')),
- h('button.send-v2__sliders-icon-container', {
+ h('button.sliders-icon-container', {
onClick,
- disabled: !gasTotal,
+ disabled: !gasTotal && !gasLoadingError,
}, [
- h('i.fa.fa-sliders.send-v2__sliders-icon'),
+ h('i.fa.fa-sliders.sliders-icon'),
]),
])