refactor: refs #6919 update translation keys in ItemTypeCard and ShelvingList components
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jorge Penadés 2025-01-28 18:12:32 +01:00
parent 533f8cfa93
commit cc193ce160
3 changed files with 12 additions and 11 deletions

View File

@ -1,8 +1,6 @@
<script setup> <script setup>
import VnCardBeta from 'components/common/VnCardBeta.vue'; import VnCardBeta from 'components/common/VnCardBeta.vue';
import ItemTypeDescriptor from 'src/pages/Item/ItemType/Card/ItemTypeDescriptor.vue'; import ItemTypeDescriptor from 'src/pages/Item/ItemType/Card/ItemTypeDescriptor.vue';
import ItemTypeFilter from 'src/pages/Item/ItemType/ItemTypeFilter.vue';
import ItemTypeSearchbar from '../ItemTypeSearchbar.vue';
import filter from './ItemTypeFilter.js'; import filter from './ItemTypeFilter.js';
</script> </script>

View File

@ -33,15 +33,18 @@ const entityId = computed(() => {
data-key="ItemType" data-key="ItemType"
> >
<template #body="{ entity }"> <template #body="{ entity }">
<VnLv :label="$t('shared.code')" :value="entity.code" /> <VnLv :label="$t('itemType.shared.code')" :value="entity.code" />
<VnLv :label="$t('shared.name')" :value="entity.name" /> <VnLv :label="$t('itemType.shared.name')" :value="entity.name" />
<VnLv :label="$t('shared.worker')"> <VnLv :label="$t('itemType.shared.worker')">
<template #value> <template #value>
<span class="link">{{ entity.worker?.firstName }}</span> <span class="link">{{ entity.worker?.firstName }}</span>
<WorkerDescriptorProxy :id="entity.worker?.id" /> <WorkerDescriptorProxy :id="entity.worker?.id" />
</template> </template>
</VnLv> </VnLv>
<VnLv :label="$t('shared.category')" :value="entity.category?.name" /> <VnLv
:label="$t('itemType.shared.category')"
:value="entity.category?.name"
/>
</template> </template>
</CardDescriptor> </CardDescriptor>
</template> </template>

View File

@ -50,18 +50,18 @@ function navigate(id) {
> >
<template #list-items> <template #list-items>
<VnLv <VnLv
:label="t('shelving.list.parking')" :label="$t('shelving.list.parking')"
:title-label="t('shelving.list.parking')" :title-label="$t('shelving.list.parking')"
:value="row.parking?.code" :value="row.parking?.code"
/> />
<VnLv <VnLv
:label="t('shelving.list.priority')" :label="$t('shelving.list.priority')"
:value="row?.priority" :value="row?.priority"
/> />
</template> </template>
<template #actions> <template #actions>
<QBtn <QBtn
:label="t('components.smartCard.openSummary')" :label="$t('components.smartCard.openSummary')"
@click.stop="viewSummary(row.id, ShelvingSummary)" @click.stop="viewSummary(row.id, ShelvingSummary)"
color="primary" color="primary"
/> />
@ -74,7 +74,7 @@ function navigate(id) {
<RouterLink :to="{ name: 'ShelvingCreate' }"> <RouterLink :to="{ name: 'ShelvingCreate' }">
<QBtn fab icon="add" color="primary" shortcut="+" /> <QBtn fab icon="add" color="primary" shortcut="+" />
<QTooltip> <QTooltip>
{{ t('shelving.list.newShelving') }} {{ $t('shelving.list.newShelving') }}
</QTooltip> </QTooltip>
</RouterLink> </RouterLink>
</QPageSticky> </QPageSticky>