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) -->
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -63,7 +63,8 @@
|
||||
"suppliersNearby": "Поставщики рядом",
|
||||
"noHubs": "Хабы не найдены",
|
||||
"noSuppliers": "Поставщики не найдены",
|
||||
"viewSupplier": "Посмотреть поставщика"
|
||||
"viewSupplier": "Посмотреть поставщика",
|
||||
"supplier": "Поставщик"
|
||||
},
|
||||
"modes": {
|
||||
"explore": "Исследовать",
|
||||
|
||||
Reference in New Issue
Block a user