add tx-viz link to transaction history

feature/default_network_editable
Frankie 8 years ago
parent 06b9adf172
commit 9c982a4bd6
  1. 39
      ui/app/components/transaction-list-item.js

@ -44,15 +44,6 @@ TransactionListItem.prototype.render = function () {
return (
h(`.transaction-list-item.flex-row.flex-space-between${isClickable ? '.pointer' : ''}`, {
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: {
padding: '20px 0',
},
@ -60,11 +51,35 @@ TransactionListItem.prototype.render = function () {
// large identicon
h('.identicon-wrapper.flex-column.flex-center.select-none', [
transaction.status === 'unconfirmed' ? h('i.fa.fa-ellipsis-h', {style: { fontSize: '27px' }})
: h(TransactionIcon, { txParams, transaction, isTx, isMsg }),
transaction.status === 'unconfirmed' ? h('i.fa.fa-ellipsis-h', {
style: {
fontSize: '27px'
}
}) : h( '.pop-hover', {
onClick: () => {
if (!isTx || isPending) return
var url = `https://metamask.github.io/eth-tx-viz/?tx=${transaction.hash}`
extension.tabs.create({ url })
},
}, [
h(TransactionIcon, { txParams, transaction, isTx, isMsg }),
]),
]),
h('.flex-column', {style: {width: '200px', overflow: 'hidden'}}, [
h('.flex-column', {
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),
h('div', date),
recipientField(txParams, transaction, isTx, isMsg),

Loading…
Cancel
Save