Fix InfoPanel - show supplier name as text, remove button
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:
Ruslan Bakiev
2026-01-27 12:15:44 +07:00
parent c39bc55ebc
commit 805b6795f0
3 changed files with 7 additions and 14 deletions

View File

@@ -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) -->