diff --git a/frontend/modules/transport/pages/carriers/new.vue b/frontend/modules/transport/pages/carriers/new.vue index 40744dc..bd940d6 100644 --- a/frontend/modules/transport/pages/carriers/new.vue +++ b/frontend/modules/transport/pages/carriers/new.vue @@ -525,7 +525,10 @@ function askRemoveContact(index: number): void { 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 { const ok = await submitPrices(error => toast.error({ title: t('transport.carriers.toast.error'), @@ -533,6 +536,7 @@ async function onSubmitPrices(): Promise { })) if (ok) { toast.success({ title: t('transport.carriers.toast.priceSaved') }) + await navigateTo('/carriers') } }