feat: add price to avatar sandbox discovery

This commit is contained in:
Index 2024-06-27 18:34:45 -05:00
parent 1e5e9fe69f
commit 6d09433395

View file

@ -359,6 +359,9 @@ async function LoadItems() {
<small class="text-muted d-block text-truncate"> <small class="text-muted d-block text-truncate">
by <a href="/users/${ (item.type !== 'hat' && item.type !== 'tool') ? '1' : item.creator.id }" class="text-reset">${ (item.type !== 'hat' && item.type !== 'tool') ? 'Polytoria' : item.creator.name }</a> by <a href="/users/${ (item.type !== 'hat' && item.type !== 'tool') ? '1' : item.creator.id }" class="text-reset">${ (item.type !== 'hat' && item.type !== 'tool') ? 'Polytoria' : item.creator.name }</a>
</small> </small>
<small style="font-size: 0.8rem;" class="d-block text-truncate
${ (item.price === 0) ? 'text-primary">Free' : (item.price !== "???") ? 'text-success"><i class="pi mr-1">$</i> ' + item.price : 'text-muted">???</small>' }
</small>
</div> </div>
` `
document.getElementById('inventory').appendChild(ItemColumn) document.getElementById('inventory').appendChild(ItemColumn)