Fix supplier link - show name instead of 'View supplier'
Some checks failed
Build Docker Image / build (push) Has been cancelled
Some checks failed
Build Docker Image / build (push) Has been cancelled
This commit is contained in:
@@ -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) -->
|
||||||
|
|||||||
Reference in New Issue
Block a user