aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2016-09-16 03:56:40 +0800
committerkumavis <aaron@kumavis.me>2016-09-16 03:56:40 +0800
commitf0d83813d66fb725eaffa3eab04280a1e9abd59a (patch)
treefd1cda9ea446301fe196b0cd907131dafc5aa059
parent254dddda97282e904ad8a76767c94738da214202 (diff)
downloadtangerine-wallet-browser-f0d83813d66fb725eaffa3eab04280a1e9abd59a.tar
tangerine-wallet-browser-f0d83813d66fb725eaffa3eab04280a1e9abd59a.tar.gz
tangerine-wallet-browser-f0d83813d66fb725eaffa3eab04280a1e9abd59a.tar.bz2
tangerine-wallet-browser-f0d83813d66fb725eaffa3eab04280a1e9abd59a.tar.lz
tangerine-wallet-browser-f0d83813d66fb725eaffa3eab04280a1e9abd59a.tar.xz
tangerine-wallet-browser-f0d83813d66fb725eaffa3eab04280a1e9abd59a.tar.zst
tangerine-wallet-browser-f0d83813d66fb725eaffa3eab04280a1e9abd59a.zip
confTx - add insufficient balance warning message
-rw-r--r--ui/app/components/pending-tx.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js
index 89d90d990..94d780590 100644
--- a/ui/app/components/pending-tx.js
+++ b/ui/app/components/pending-tx.js
@@ -47,6 +47,10 @@ PendingTx.prototype.render = function () {
}
`),
+ insufficientBalance ?
+ h('span.error', { style: { marginLeft: 36 } }, 'Insufficient balance for transaction.')
+ : null,
+
// send + cancel
h('.flex-row.flex-space-around.conf-buttons', {
style: {
@@ -56,13 +60,11 @@ PendingTx.prototype.render = function () {
},
}, [
- ( insufficientBalance ?
+ insufficientBalance ?
h('button.btn-green', {
onClick: state.sendTransaction,
}, 'Buy Ether')
- :
- null
- ),
+ : null,
h('button.confirm', {
disabled: insufficientBalance,