From f3f6968876698e25ef143b9252a0978f41c192f8 Mon Sep 17 00:00:00 2001
From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com>
Date: Fri, 20 May 2022 09:52:50 +0200
Subject: [PATCH] fix(carto): structure-details missing display placeholder and
 correct link for profile

---
 src/app/app.component.html                                      | 1 +
 src/app/profile/profile.component.html                          | 2 +-
 .../components/structure-details/structure-details.component.ts | 2 --
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/app/app.component.html b/src/app/app.component.html
index 9baeb2dc2..555341ffe 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 ecb9c9beb..f374fb6b8 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 1271fa67b..92137181b 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,
-- 
GitLab