Skip to content

Commit

Permalink
fix routing
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoLechemia committed Jul 18, 2024
1 parent b811d5c commit 3ad2cae
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,17 @@ export class MonitoringSitesGroupsComponent extends MonitoringGeomComponent impl

seeDetails($event) {
// TODO: routerLink
let objectType;
if (this.activetabIndex == 1) {
this._objService.changeObjectTypeParent(this._sitesService.objectObs);
objectType = "sites"
} else {
this._objService.changeObjectTypeParent(this._sites_group_service.objectObs);
objectType = "sites_group"

}
this.router.navigate(['/monitorings/object/generic/', this.currentRoute, $event[$event.id]], {
queryParams: { parents_path: ['module', 'sites_group'] },
queryParams: { parents_path: ['module', objectType] },
});
}

Expand Down

0 comments on commit 3ad2cae

Please sign in to comment.