feat: free edit and publish/unpublish toggle for paid listings within 30-day period
This commit is contained in:
@@ -124,6 +124,8 @@ class ListingCard extends HTMLElement {
|
||||
paymentBadge = /* html */`<span class="payment-badge payment-processing"><span class="pulse-dot"></span>${t('myListings.status.processing')}</span>`
|
||||
} else if (paymentStatus === 'expired') {
|
||||
paymentBadge = /* html */`<span class="payment-badge payment-expired">${t('myListings.status.expired')}</span>`
|
||||
} else if (paymentStatus === 'paid' && status === 'draft') {
|
||||
paymentBadge = /* html */`<span class="payment-badge payment-unpublished">${t('myListings.status.unpublished')}</span>`
|
||||
} else if (paymentStatus === 'paid') {
|
||||
paymentBadge = /* html */`<span class="payment-badge payment-published">${t('myListings.status.published')}</span>`
|
||||
}
|
||||
@@ -255,6 +257,11 @@ style.textContent = /* css */`
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
listing-card .payment-unpublished {
|
||||
background: rgba(120, 120, 120, 0.85);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
listing-card .pulse-dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
|
||||
Reference in New Issue
Block a user