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

Merge branch 'fix/issue39' into 'V2.0'

fix(carto): redirect to carto after structure close

Closes #39

See merge request web-et-numerique/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_client!340
parents 9ecaac2b bcb1fe61
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 { ...@@ -53,7 +53,6 @@ export class TrainingTypePickerComponent implements OnInit {
} }
cat.modules = cat.modules.filter((module) => selectedModulesId.includes(module.id)); cat.modules = cat.modules.filter((module) => selectedModulesId.includes(module.id));
}); });
console.log('MOUNT ', this.selectedChoices);
}); });
} }
......
...@@ -188,6 +188,10 @@ export class StructureDetailsComponent implements OnInit { ...@@ -188,6 +188,10 @@ export class StructureDetailsComponent implements OnInit {
} }
public close(): void { public close(): void {
if (this.router.url.startsWith('/acteurs')) {
this.router.navigateByUrl('/acteurs');
return;
}
this.route.url.subscribe((urls) => { this.route.url.subscribe((urls) => {
if (urls.length > 0 && urls[0].path !== 'orientation') { if (urls.length > 0 && urls[0].path !== 'orientation') {
this.router.navigate(['/acteurs'], { 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