Skip to content
Snippets Groups Projects
Commit 02b27efe authored by Etienne LOUPIAS's avatar Etienne LOUPIAS
Browse files

wip ajouter offre

parent df71bf7c
No related branches found
No related tags found
1 merge request!936Resolve "[modification fiche structure] - Offre structure vs. Offre accompagnant numérique + ordre des blocs"
......@@ -166,9 +166,13 @@ export class StructureEditionSummaryComponent implements OnInit {
public goToEdit(step: structureFormStep, offer: any = null): void {
this.isGoToEdit = true;
if (offer?.user) {
this.router.navigateByUrl(`/profil/edition-offre-personnelle/${offer.offers._id}`, {
state: { structureName: this.structure.structureName },
});
if (offer.offers._id) {
this.router.navigateByUrl(`/profil/edition-offre-personnelle/${offer.offers._id}`, {
state: { structureName: this.structure.structureName },
});
} else {
this.router.navigate(['/formulaire/offre-personnelle'], { state: { structure: this.structure } });
}
} else {
this.router.navigate(['/formulaire/structure', this.structure.permalink, structureFormStep[step]]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment