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> </p>
<!-- Supplier for offer --> <!-- 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" /> <Icon name="lucide:factory" size="14" />
<span v-if="loadingSuppliers" class="loading loading-spinner loading-xs" /> <span v-if="loadingSuppliers" class="loading loading-spinner loading-xs" />
<span v-else-if="supplierDisplayName"> <span v-else>{{ supplierDisplayName || $t('catalog.info.supplier') }}</span>
{{ supplierDisplayName }} </p>
</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>
</div> </div>
<!-- Products Section (for hub/supplier) --> <!-- Products Section (for hub/supplier) -->

View File

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

View File

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