1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

confTx - add insufficient balance warning message

This commit is contained in:
kumavis 2016-09-15 12:56:40 -07:00
parent 254dddda97
commit f0d83813d6

View File

@ -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,