fix: guard non-published listings for non-owners, locale-aware number format, accept all currencies as default
This commit is contained in:
@@ -199,11 +199,11 @@ class PageListing extends HTMLElement {
|
||||
return
|
||||
}
|
||||
|
||||
if (this.listing.status === 'deleted' && !this.isOwner) {
|
||||
if (this.listing.status !== 'published' && !this.isOwner) {
|
||||
this.innerHTML = /* html */`
|
||||
<div class="empty-state">
|
||||
<div class="empty-state-icon">🗑️</div>
|
||||
<p>${t('messages.listingRemoved')}</p>
|
||||
<div class="empty-state-icon">😕</div>
|
||||
<p>${t('listing.notFound')}</p>
|
||||
<a href="#/" class="btn btn-primary">${t('listing.backHome')}</a>
|
||||
</div>
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user