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> </script>
<template> <template>
<div class="descriptor"> <div class="descriptor" v-bind="$attrs">
<template v-if="entity && !isLoading"> <template v-if="entity && !isLoading">
<div class="header bg-primary q-pa-sm justify-between"> <div class="header bg-primary q-pa-sm justify-between">
<slot name="header-extra-action" <slot name="header-extra-action"

View File

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