Skip to content

Commit

Permalink
sold label
Browse files Browse the repository at this point in the history
  • Loading branch information
daiagi committed Nov 26, 2023
1 parent 831a675 commit 665e723
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/carousel/module/CarouselInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
inline
:prefix="item.chain"
:unit-symbol="unitSymbol" />
<span class="ml-2 has-text-grey is-size-7">- Sold</span>
<span v-if="showSold" class="ml-2 has-text-grey is-size-7"
>- {{ $t('spotlight.sold') }}</span
>
</div>
<p class="is-size-7 chain-name is-capitalized">{{ chainName }}</p>
</div>
Expand Down Expand Up @@ -74,6 +76,7 @@ const chainName = computed(() => {
})
const price = computed(() => props.item.latestSalePrice ?? props.item.price)
const showSold = computed(() => Number(props.item.latestSalePrice) > 0)
const showPrice = computed((): boolean => {
return Number(price.value) > 0 && !isCollection
Expand Down

0 comments on commit 665e723

Please sign in to comment.