mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
add tx-viz link to transaction history
This commit is contained in:
parent
06b9adf172
commit
9c982a4bd6
@ -44,7 +44,30 @@ 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) => {
|
style: {
|
||||||
|
padding: '20px 0',
|
||||||
|
},
|
||||||
|
}, [
|
||||||
|
|
||||||
|
// large identicon
|
||||||
|
h('.identicon-wrapper.flex-column.flex-center.select-none', [
|
||||||
|
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', {
|
||||||
|
onClick: (event) => {
|
||||||
if (isPending) {
|
if (isPending) {
|
||||||
this.props.showTx(transaction.id)
|
this.props.showTx(transaction.id)
|
||||||
}
|
}
|
||||||
@ -54,17 +77,9 @@ TransactionListItem.prototype.render = function () {
|
|||||||
extension.tabs.create({ url })
|
extension.tabs.create({ url })
|
||||||
},
|
},
|
||||||
style: {
|
style: {
|
||||||
padding: '20px 0',
|
width: '200px',
|
||||||
},
|
overflow: 'hidden'}
|
||||||
}, [
|
}, [
|
||||||
|
|
||||||
// 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 }),
|
|
||||||
]),
|
|
||||||
|
|
||||||
h('.flex-column', {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),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user