1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
This commit is contained in:
Frankie 2016-09-15 18:25:05 -07:00
parent dcda841f4d
commit 3682a2a1f9

View File

@ -53,32 +53,33 @@ TransactionListItem.prototype.render = function () {
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: () => {
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 })
}, },
}, [ }, [
h(TransactionIcon, { txParams, transaction, isTx, isMsg }), h(TransactionIcon, { txParams, transaction, isTx, isMsg }),
]), ]),
]), ]),
h('.flex-column', { h('.flex-column', {
onClick: (event) => { onClick: (event) => {
if (isPending) { if (isPending) {
this.props.showTx(transaction.id) this.props.showTx(transaction.id)
} }
if (!transaction.hash || !isLinkable) return if (!transaction.hash || !isLinkable) return
var url = explorerLink(transaction.hash, parseInt(network)) var url = explorerLink(transaction.hash, parseInt(network))
extension.tabs.create({ url }) extension.tabs.create({ url })
}, },
style: { style: {
width: '200px', width: '200px',
overflow: 'hidden'} overflow: 'hidden',
},
}, [ }, [
domainField(txParams), domainField(txParams),
h('div', date), h('div', date),