|
|
@ -44,19 +44,28 @@ TransactionListItem.prototype.render = function () { |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
h(`.transaction-list-item.flex-row.flex-space-between${isClickable ? '.pointer' : ''}`, { |
|
|
|
h(`.transaction-list-item.flex-row.flex-space-between${isClickable ? '.pointer' : ''}`, { |
|
|
|
|
|
|
|
onClick: (event) => { |
|
|
|
|
|
|
|
if (isPending) { |
|
|
|
|
|
|
|
this.props.showTx(transaction.id) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
event.stopPropagation() |
|
|
|
|
|
|
|
if (!transaction.hash || !isLinkable) return |
|
|
|
|
|
|
|
var url = explorerLink(transaction.hash, parseInt(network)) |
|
|
|
|
|
|
|
extension.tabs.create({ url }) |
|
|
|
|
|
|
|
}, |
|
|
|
style: { |
|
|
|
style: { |
|
|
|
padding: '20px 0', |
|
|
|
padding: '20px 0', |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, [ |
|
|
|
}, [ |
|
|
|
|
|
|
|
|
|
|
|
// large identicon
|
|
|
|
|
|
|
|
h('.identicon-wrapper.flex-column.flex-center.select-none', [ |
|
|
|
h('.identicon-wrapper.flex-column.flex-center.select-none', [ |
|
|
|
transaction.status === 'unconfirmed' ? h('i.fa.fa-ellipsis-h', { |
|
|
|
transaction.status === 'unconfirmed' ? h('i.fa.fa-ellipsis-h', { |
|
|
|
style: { |
|
|
|
style: { |
|
|
|
fontSize: '27px', |
|
|
|
fontSize: '27px', |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) : h( '.pop-hover', { |
|
|
|
}) : h( '.pop-hover', { |
|
|
|
onClick: () => { |
|
|
|
onClick: (event) => { |
|
|
|
|
|
|
|
event.stopPropagation() |
|
|
|
if (!isTx || isPending) return |
|
|
|
if (!isTx || isPending) return |
|
|
|
var url = `https://metamask.github.io/eth-tx-viz/?tx=${transaction.hash}` |
|
|
|
var url = `https://metamask.github.io/eth-tx-viz/?tx=${transaction.hash}` |
|
|
|
extension.tabs.create({ url }) |
|
|
|
extension.tabs.create({ url }) |
|
|
@ -66,21 +75,7 @@ TransactionListItem.prototype.render = function () { |
|
|
|
]), |
|
|
|
]), |
|
|
|
]), |
|
|
|
]), |
|
|
|
|
|
|
|
|
|
|
|
h('.flex-column', { |
|
|
|
h('.flex-column', {style: {width: '200px', overflow: 'hidden'}}, [ |
|
|
|
onClick: (event) => { |
|
|
|
|
|
|
|
if (isPending) { |
|
|
|
|
|
|
|
this.props.showTx(transaction.id) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!transaction.hash || !isLinkable) return |
|
|
|
|
|
|
|
var url = explorerLink(transaction.hash, parseInt(network)) |
|
|
|
|
|
|
|
extension.tabs.create({ url }) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
style: { |
|
|
|
|
|
|
|
width: '200px', |
|
|
|
|
|
|
|
overflow: 'hidden', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, [ |
|
|
|
|
|
|
|
domainField(txParams), |
|
|
|
domainField(txParams), |
|
|
|
h('div', date), |
|
|
|
h('div', date), |
|
|
|
recipientField(txParams, transaction, isTx, isMsg), |
|
|
|
recipientField(txParams, transaction, isTx, isMsg), |
|
|
|