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

fix(carto): redirect to carto after structure close

parent 9ecaac2b
No related branches found
No related tags found
4 merge requests!418V2.1.0,!400V2.0,!340fix(carto): redirect to carto after structure close,!230V2.0
......@@ -53,7 +53,6 @@ export class TrainingTypePickerComponent implements OnInit {
}
cat.modules = cat.modules.filter((module) => selectedModulesId.includes(module.id));
});
console.log('MOUNT ', this.selectedChoices);
});
}
......
......@@ -188,6 +188,10 @@ export class StructureDetailsComponent implements OnInit {
}
public close(): void {
if (this.router.url.startsWith('/acteurs')) {
this.router.navigateByUrl('/acteurs');
return;
}
this.route.url.subscribe((urls) => {
if (urls.length > 0 && urls[0].path !== 'orientation') {
this.router.navigate(['/acteurs'], {
......
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