7366-travelMigration #430

Merged
carlossa merged 13 commits from 7366-travelMigration into dev 2024-06-18 06:03:42 +00:00
2 changed files with 2 additions and 13 deletions
Showing only changes of commit 0d25c1b66b - Show all commits

View File

@ -36,6 +36,7 @@ const cloneTravelWithEntries = () => {
try {
axios.post(`Travels/${$props.travel.id}/cloneWithEntries`);
carlossa marked this conversation as resolved Outdated
Outdated
Review

Revisar, normalmente se hace: const { data } = ... y de ahi ya el id

Revisar, normalmente se hace: `const { data } = ... ` y de ahi ya el id
notify('globals.dataSaved', 'positive');
redirectToCreateView();
carlossa marked this conversation as resolved Outdated
Outdated
Review

data.id

data.id
} catch (err) {
console.err('Error cloning travel with entries');
}

View File

@ -242,18 +242,6 @@ const getLink = (param) => `#/travel/${entityId.value}/${param}`;
<template #header>
<span>{{ travel.ref }} - {{ travel.id }}</span>
</template>
<template #header-right>
<QBtn color="white" dense flat icon="more_vert" round size="md">
<QTooltip>
{{ t('components.cardDescriptor.moreOptions') }}
</QTooltip>
<QMenu>
<QList>
<TravelDescriptorMenuItems :travel="travel" />
</QList>
</QMenu>
</QBtn>
</template>
<template #body>
<QCard class="vn-one">
@ -304,7 +292,7 @@ const getLink = (param) => `#/travel/${entityId.value}/${param}`;
<VnLv label="m³" :value="travel.m3" />
<VnLv :label="t('globals.totalEntries')" :value="travel.totalEntries" />
</QCard>
<QCard class="full-width" v-if="entriesTableRows.length > 0">
<QCard class="full-width">
<VnTitle :text="t('travel.summary.entries')" />
<QTable
:rows="entriesTableRows"