feat(transport) : retour au répertoire après validation du dernier onglet (création) (ERP-172)
Pull Request — Quality gate / Frontend (lint + Vitest + build) (pull_request) Has been cancelled
Pull Request — Quality gate / Backend (PHP CS + PHPUnit) (pull_request) Has been cancelled

This commit is contained in:
2026-06-17 17:44:34 +02:00
parent 76fb01c063
commit 9fcf5c24f6
@@ -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<void> {
const ok = await submitPrices(error => toast.error({
title: t('transport.carriers.toast.error'),
@@ -533,6 +536,7 @@ async function onSubmitPrices(): Promise<void> {
}))
if (ok) {
toast.success({ title: t('transport.carriers.toast.priceSaved') })
await navigateTo('/carriers')
}
}