refactor(EntryList): refs #7527 redirect alls creates to popup
gitea/salix-front/pipeline/pr-dev Something is wrong with the build of this commit Details

This commit is contained in:
Alex Moreno 2025-04-11 10:24:00 +02:00
parent 9d92c4c178
commit 9b692bd966
4 changed files with 8 additions and 12 deletions

View File

@ -215,7 +215,6 @@ globals:
entries: Entries
buys: Buys
dms: File management
entryCreate: New entry
latestBuys: Latest buys
reserves: Reserves
tickets: Tickets

View File

@ -82,7 +82,10 @@ const deleteTravel = async (id) => {
<QItem v-ripple clickable>
<QItemSection>
<RouterLink
:to="{ name: 'EntryCreate', query: { travelFk: travel.id } }"
:to="{
name: 'EntryList',
query: { createForm: JSON.stringify({ travelFk: travel.id }) },
}"
class="color-vn-text"
>
{{ t('travel.summary.AddEntry') }}

View File

@ -38,7 +38,10 @@ const redirectToCreateView = (queryParams) => {
};
const redirectCreateEntryView = (travelData) => {
router.push({ name: 'EntryCreate', query: { travelFk: travelData.id } });
router.push({
name: 'EntryList',
query: { createForm: JSON.stringify({ travelFk: travelData.id }) },
});
};
const columns = computed(() => [

View File

@ -114,15 +114,6 @@ export default {
entryCard,
],
},
{
path: 'create',
name: 'EntryCreate',
meta: {
title: 'entryCreate',
icon: 'add',
},
component: () => import('src/pages/Entry/EntryCreate.vue'),
},
{
path: 'my',
name: 'EntrySupplier',