0
0
Fork 0

Fix ItemDescriptor labels

This commit is contained in:
William Buezas 2024-04-24 17:30:53 -03:00
parent a6ebe9cf19
commit 84a9dc8319
1 changed files with 17 additions and 4 deletions

View File

@ -271,14 +271,27 @@ const openCloneDialog = async () => {
<VnLv :label="t('item.descriptor.buyer')"> <VnLv :label="t('item.descriptor.buyer')">
<template #value> <template #value>
<span class="link"> <span class="link">
{{ t('item.descriptor.buyer') }} {{ entity.itemType?.worker?.user?.name }}
<WorkerDescriptorProxy :id="entity.itemType?.worker?.id" /> <WorkerDescriptorProxy :id="entity.itemType?.worker?.id" />
</span> </span>
</template> </template>
</VnLv> </VnLv>
<VnLv :label="t('item.descriptor.color')" :value="entity.value5"> </VnLv> <VnLv
<VnLv :label="t('item.descriptor.color')" :value="entity.value6" /> v-if="entity.value5"
<VnLv :label="t('item.descriptor.stems')" :value="entity.value7" /> :label="t('item.descriptor.color')"
:value="entity.value5"
>
</VnLv>
<VnLv
v-if="entity.value6"
:label="t('item.descriptor.category')"
:value="entity.value6"
/>
<VnLv
v-if="entity.value7"
:label="t('item.descriptor.stems')"
:value="entity.value7"
/>
</template> </template>
<template #actions="{}"> <template #actions="{}">
<QCardActions class="row justify-center"> <QCardActions class="row justify-center">