0
0
Fork 0

refs #7366 fix travel

This commit is contained in:
Carlos Satorres 2024-06-03 11:27:44 +02:00
parent 221ed7c534
commit 0d25c1b66b
2 changed files with 2 additions and 13 deletions

View File

@ -36,6 +36,7 @@ const cloneTravelWithEntries = () => {
try {
axios.post(`Travels/${$props.travel.id}/cloneWithEntries`);
notify('globals.dataSaved', 'positive');
redirectToCreateView();
} 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"