diff --git a/src/app/app.component.html b/src/app/app.component.html index 9baeb2dc29cb2e193b9b3fd4c4eb9ab276e2f2ab..555341ffe057cb81ce97673b9df2517b9e66a2f5 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,6 +1,7 @@ <div class="app-container"> <app-header></app-header> <div class="app-body"> + <router-outlet name="left-pane"></router-outlet> <router-outlet></router-outlet> <router-outlet name="print"></router-outlet> <router-outlet name="footer"></router-outlet> diff --git a/src/app/profile/profile.component.html b/src/app/profile/profile.component.html index ecb9c9bebc600f9901f62f921a20058b109fa2d1..f374fb6b8b3c989cff57dd215ba8dd0bfa3d9175 100644 --- a/src/app/profile/profile.component.html +++ b/src/app/profile/profile.component.html @@ -81,7 +81,7 @@ <div class="structureCard" *ngFor="let s of structures; let i = index"> <div class="structureInfo" fxLayout="column" fxLayoutGap="14px"> <div fxLayout="row" fxLayoutAlign="space-between start" fxLayoutGap="20px"> - <a class="structureName" routerLink="/acteurs" [state]="{ data: s.structure }">{{ + <a class="structureName" [routerLink]="['/profile']" [queryParams]="{ id: s.structure._id }">{{ s.structure.structureName }}</a> <app-structure-options-modal diff --git a/src/app/structure-list/components/structure-details/structure-details.component.ts b/src/app/structure-list/components/structure-details/structure-details.component.ts index 1271fa67b42879d448f8bbb126182ce3d46da7cb..92137181b177299f69b27ac1a94e13c1141c17e7 100644 --- a/src/app/structure-list/components/structure-details/structure-details.component.ts +++ b/src/app/structure-list/components/structure-details/structure-details.component.ts @@ -1,5 +1,4 @@ import { animate, AUTO_STYLE, state, style, transition, trigger } from '@angular/animations'; -import { Location } from '@angular/common'; import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import * as _ from 'lodash'; @@ -76,7 +75,6 @@ export class StructureDetailsComponent implements OnInit { public fullScreen = false; constructor( - private location: Location, private printService: PrintService, private searchService: SearchService, private structureService: StructureService,