fix: refs #8616 add conditional for SupplierDescriptorProxy and bind attributes in CardDescriptor
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jose Antonio Tubau 2025-02-20 09:08:53 +01:00
parent bb928a0c76
commit 9fa21cbaff
2 changed files with 6 additions and 2 deletions

View File

@ -120,7 +120,7 @@ const toModule = computed(() =>
</script>
<template>
<div class="descriptor">
<div class="descriptor" v-bind="$attrs">
<template v-if="entity && !isLoading">
<div class="header bg-primary q-pa-sm justify-between">
<slot name="header-extra-action"

View File

@ -49,7 +49,10 @@ const links = {
<template #value>
<span class="link">
{{ entity.supplier?.name }}
<SupplierDescriptorProxy :id="entity.supplierFk" />
<SupplierDescriptorProxy
v-if="entity.supplierFk"
:id="entity.supplierFk"
/>
</span>
</template>
</VnLv>
@ -58,6 +61,7 @@ const links = {
<span class="link">
{{ entity.supplierCooler?.name }}
<SupplierDescriptorProxy
v-if="entity.supplierCoolerFk"
:id="entity.supplierCoolerFk"
/>
</span>