Skip to content

Commit

Permalink
Transfer NFTs on Tx page
Browse files Browse the repository at this point in the history
  • Loading branch information
jplomas committed Mar 21, 2022
1 parent ef8c7ba commit 41967d8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
18 changes: 15 additions & 3 deletions imports/ui/components/tx/tx.html
Expand Up @@ -56,7 +56,7 @@ <h3 class="ui pageHeader header">
<div class="ui statistic">

<div class="label">
<div class="ui {{color}} label">{{explorer.type}}{{#if isTokenTransfer}}: {{explorer.symbol}} {{/if}}</div>
<div class="ui {{color}} label">{{explorer.type}}{{#if isTokenTransfer}}{{#if isTransferNFT}}{{else}}: {{explorer.symbol}} {{/if}}{{/if}}</div>
</div>
{{#if isNotMultiSig}}
{{#if isNotMessage}}
Expand All @@ -68,9 +68,21 @@ <h3 class="ui pageHeader header">
{{else}}
{{#if isTokenTransfer}}
{{#if isTransferNFT}}
{{#if knownProvider}}
<p>
<i class="ui certificate icon"></i>Verified provider:
<a href="{{providerURL}}/{{tx.tx.transaction_hash}}">{{providerName}}</a> ({{providerID}})
</p>
{{else}}
<p>
<i class="ui warning icon"></i>Unverified provider:
{{providerID}}
</p>
{{/if}}

<div class="value">{{explorer.totalTransferred}}</div>
{{explorer.symbol}} ({{explorer.name}})<br />
NFT transferred

NFT transferred<br /><br />
<div class="label">NFT creation transaction: </div>
<a href="/tx/{{explorer.token_txhash}}" class="unbreakable">{{explorer.token_txhash}}</a>
{{else}}
Expand Down
1 change: 0 additions & 1 deletion imports/ui/components/tx/tx.js
Expand Up @@ -285,7 +285,6 @@ Template.tx.helpers({
return false
},
isTransferNFT() {
console.log(this)
if (this.explorer.type === 'TRANSFER NFT') {
return true
}
Expand Down

0 comments on commit 41967d8

Please sign in to comment.