0
0
Fork 0

Add missing worker descriptor

This commit is contained in:
Kevin Martinez 2024-02-06 08:16:10 -03:00
parent 1665dbf400
commit 7e45486abd
1 changed files with 9 additions and 4 deletions

View File

@ -6,6 +6,7 @@ import { useStateStore } from 'stores/useStateStore';
import CardSummary from 'components/ui/CardSummary.vue';
import VnLv from 'components/ui/VnLv.vue';
import ShelvingFilter from 'pages/Shelving/Card/ShelvingFilter.vue';
import VnUserLink from "components/ui/VnUserLink.vue";
const $props = defineProps({
id: {
@ -85,10 +86,14 @@ const filter = {
:label="t('shelving.summary.priority')"
:value="entity.priority"
/>
<VnLv
:label="t('shelving.summary.worker')"
:value="entity.worker?.user?.nickname"
/>
<VnLv v-if="entity.worker" :label="t('shelving.summary.worker')">
<template #value>
<VnUserLink
:name="entity.worker?.user?.nickname"
:worker-id="entity.worker?.id"
/>
</template>
</VnLv>
<VnLv
:label="t('shelving.summary.recyclable')"
:value="entity.isRecyclable"