Fix InfoPanel - show supplier name as text, remove button
Some checks failed
Build Docker Image / build (push) Has been cancelled
Some checks failed
Build Docker Image / build (push) Has been cancelled
- Remove "View supplier" button, show name as plain text - Add fallback translation for unknown supplier
This commit is contained in:
@@ -42,20 +42,11 @@
|
||||
</p>
|
||||
|
||||
<!-- Supplier for offer -->
|
||||
<div v-if="entityType === 'offer'" class="text-sm text-white/70 flex items-center gap-1 mt-1">
|
||||
<p v-if="entityType === 'offer'" class="text-sm text-white/70 flex items-center gap-1 mt-1">
|
||||
<Icon name="lucide:factory" size="14" />
|
||||
<span v-if="loadingSuppliers" class="loading loading-spinner loading-xs" />
|
||||
<span v-else-if="supplierDisplayName">
|
||||
{{ supplierDisplayName }}
|
||||
</span>
|
||||
<button
|
||||
v-else-if="entity?.teamUuid"
|
||||
class="text-primary hover:underline"
|
||||
@click="emit('open-info', 'supplier', entity.teamUuid)"
|
||||
>
|
||||
{{ $t('catalog.info.viewSupplier') }}
|
||||
</button>
|
||||
</div>
|
||||
<span v-else>{{ supplierDisplayName || $t('catalog.info.supplier') }}</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Products Section (for hub/supplier) -->
|
||||
|
||||
Reference in New Issue
Block a user