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

View File

@@ -63,7 +63,8 @@
"suppliersNearby": "Suppliers nearby",
"noHubs": "No hubs found",
"noSuppliers": "No suppliers found",
"viewSupplier": "View supplier"
"viewSupplier": "View supplier",
"supplier": "Supplier"
},
"modes": {
"explore": "Explore",

View File

@@ -63,7 +63,8 @@
"suppliersNearby": "Поставщики рядом",
"noHubs": "Хабы не найдены",
"noSuppliers": "Поставщики не найдены",
"viewSupplier": "Посмотреть поставщика"
"viewSupplier": "Посмотреть поставщика",
"supplier": "Поставщик"
},
"modes": {
"explore": "Исследовать",