feat(transport) : retour au répertoire après validation du dernier onglet (création) (ERP-172)
This commit is contained in:
@@ -525,7 +525,10 @@ function askRemoveContact(index: number): void {
|
|||||||
deleteConfirm.open = true
|
deleteConfirm.open = true
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Valide l'onglet Prix (POST/PATCH par ligne ; avance gérée par le composable). */
|
/**
|
||||||
|
* Valide l'onglet Prix = DERNIER onglet du flux de création. Au succès, l'ajout est
|
||||||
|
* terminé : toast final + retour au répertoire transporteurs (aligné sur M1/M2/M3).
|
||||||
|
*/
|
||||||
async function onSubmitPrices(): Promise<void> {
|
async function onSubmitPrices(): Promise<void> {
|
||||||
const ok = await submitPrices(error => toast.error({
|
const ok = await submitPrices(error => toast.error({
|
||||||
title: t('transport.carriers.toast.error'),
|
title: t('transport.carriers.toast.error'),
|
||||||
@@ -533,6 +536,7 @@ async function onSubmitPrices(): Promise<void> {
|
|||||||
}))
|
}))
|
||||||
if (ok) {
|
if (ok) {
|
||||||
toast.success({ title: t('transport.carriers.toast.priceSaved') })
|
toast.success({ title: t('transport.carriers.toast.priceSaved') })
|
||||||
|
await navigateTo('/carriers')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user