aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pending-tx.js
diff options
context:
space:
mode:
authorFrankie <frankie.pangilinan@consensys.net>2016-09-16 09:16:41 +0800
committerFrankie <frankie.pangilinan@consensys.net>2016-09-16 09:16:41 +0800
commitdcda841f4d33f96a5620b2458decd94339d5ee52 (patch)
tree07cce20fe4474c2424026703a4482b2867eb5beb /ui/app/components/pending-tx.js
parentbc33c88ae53fbc08e75db025888d5bc3bcfe236d (diff)
parenta5e45820cc7359491d1d7b06a5358d99b9c97305 (diff)
downloadtangerine-wallet-browser-dcda841f4d33f96a5620b2458decd94339d5ee52.tar
tangerine-wallet-browser-dcda841f4d33f96a5620b2458decd94339d5ee52.tar.gz
tangerine-wallet-browser-dcda841f4d33f96a5620b2458decd94339d5ee52.tar.bz2
tangerine-wallet-browser-dcda841f4d33f96a5620b2458decd94339d5ee52.tar.lz
tangerine-wallet-browser-dcda841f4d33f96a5620b2458decd94339d5ee52.tar.xz
tangerine-wallet-browser-dcda841f4d33f96a5620b2458decd94339d5ee52.tar.zst
tangerine-wallet-browser-dcda841f4d33f96a5620b2458decd94339d5ee52.zip
Merge branch 'master' into tx-viz
Diffstat (limited to 'ui/app/components/pending-tx.js')
-rw-r--r--ui/app/components/pending-tx.js23
1 files changed, 18 insertions, 5 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js
index 1feedbbbc..4c27a8092 100644
--- a/ui/app/components/pending-tx.js
+++ b/ui/app/components/pending-tx.js
@@ -3,7 +3,6 @@ const h = require('react-hyperscript')
const inherits = require('util').inherits
const PendingTxDetails = require('./pending-tx-details')
-
module.exports = PendingTx
inherits(PendingTx, Component)
@@ -31,6 +30,15 @@ PendingTx.prototype.render = function () {
}
`),
+ state.insufficientBalance ?
+ h('span.error', {
+ style: {
+ marginLeft: 50,
+ fontSize: '0.9em',
+ },
+ }, 'Insufficient balance for transaction')
+ : null,
+
// send + cancel
h('.flex-row.flex-space-around.conf-buttons', {
style: {
@@ -39,17 +47,22 @@ PendingTx.prototype.render = function () {
margin: '14px 25px',
},
}, [
+
+ state.insufficientBalance ?
+ h('button.btn-green', {
+ onClick: state.buyEth,
+ }, 'Buy Ether')
+ : null,
+
h('button.confirm', {
+ disabled: state.insufficientBalance,
onClick: state.sendTransaction,
- style: { background: 'rgb(251,117,1)' },
}, 'Accept'),
- h('button.cancel', {
+ h('button.cancel.btn-red', {
onClick: state.cancelTransaction,
- style: { background: 'rgb(254,35,17)' },
}, 'Reject'),
]),
])
)
}
-