Fix supplier link - show name instead of 'View supplier'
Some checks failed
Build Docker Image / build (push) Has been cancelled

This commit is contained in:
Ruslan Bakiev
2026-01-27 12:20:06 +07:00
parent 805b6795f0
commit 5aa460fd8a

View File

@@ -41,12 +41,16 @@
{{ formatPrice(entity.pricePerUnit) }} {{ entity.currency || 'RUB' }}/{{ entity.unit || 't' }} {{ formatPrice(entity.pricePerUnit) }} {{ entity.currency || 'RUB' }}/{{ entity.unit || 't' }}
</p> </p>
<!-- Supplier for offer --> <!-- Supplier for offer (clickable name) -->
<p v-if="entityType === 'offer'" class="text-sm text-white/70 flex items-center gap-1 mt-1"> <button
v-if="entityType === 'offer' && entity?.teamUuid"
class="text-sm text-primary hover:underline flex items-center gap-1 mt-1"
@click="emit('open-info', 'supplier', entity.teamUuid)"
>
<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>{{ supplierDisplayName || $t('catalog.info.supplier') }}</span> <span v-else>{{ supplierDisplayName || $t('catalog.info.supplier') }}</span>
</p> </button>
</div> </div>
<!-- Products Section (for hub/supplier) --> <!-- Products Section (for hub/supplier) -->