From 1185923452c8e46fd125b1fd2a483445c6f17de1 Mon Sep 17 00:00:00 2001
From: Marlene Simondant <msimondant@grandlyon.com>
Date: Thu, 7 Mar 2024 10:33:07 +0100
Subject: [PATCH] refacto: remove remoteAccompaniment

---
 src/app/models/structure.model.ts                         | 1 -
 .../structure-detail-print.component.html                 | 8 +-------
 .../structure-details/structure-details.component.html    | 1 -
 src/app/utils/formUtils.ts                                | 1 -
 4 files changed, 1 insertion(+), 10 deletions(-)

diff --git a/src/app/models/structure.model.ts b/src/app/models/structure.model.ts
index 3fd00f0a6..15e77b70d 100644
--- a/src/app/models/structure.model.ts
+++ b/src/app/models/structure.model.ts
@@ -36,7 +36,6 @@ export class Structure {
   public contactPersonEmail: string = null;
   public categories: Record<string, string[]>;
   public categoriesDisplay: Record<string, Module[]>;
-  public remoteAccompaniment: boolean = null;
   public nbComputers: number = null;
   public nbPrinters: number = null;
   public nbScanners: number = null;
diff --git a/src/app/shared/components/structure-detail-print/structure-detail-print.component.html b/src/app/shared/components/structure-detail-print/structure-detail-print.component.html
index 2cc2e743c..a5885191f 100644
--- a/src/app/shared/components/structure-detail-print/structure-detail-print.component.html
+++ b/src/app/shared/components/structure-detail-print/structure-detail-print.component.html
@@ -29,10 +29,7 @@
     </div>
   </div>
   <!-- Accueil -->
-  <div
-    *ngIf="tclStopPoints || structure.hours.hasData() || structure.remoteAccompaniment"
-    class="structure-details-block accessDetails flex column"
-  >
+  <div *ngIf="tclStopPoints || structure.hours.hasData()" class="structure-details-block accessDetails flex column">
     <!-- Opening Hours -->
     <div class="w-100 mobile-column flex row mb20">
       <div *ngIf="structure.hours.hasData()" class="timeContainer">
@@ -74,8 +71,5 @@
       <h3 class="subtitle uppercase">précisions sur les horaires</h3>
       <p>{{ structure.exceptionalClosures }}</p>
     </div>
-    <div *ngIf="structure.remoteAccompaniment" class="bold-info">
-      <h3>Cette structure propose un accompagnement à distance.</h3>
-    </div>
   </div>
 </div>
diff --git a/src/app/structure-list/components/structure-details/structure-details.component.html b/src/app/structure-list/components/structure-details/structure-details.component.html
index dff92a0c1..a2f007e87 100644
--- a/src/app/structure-list/components/structure-details/structure-details.component.html
+++ b/src/app/structure-list/components/structure-details/structure-details.component.html
@@ -195,7 +195,6 @@
           [clickable]="false"
         />
       </div>
-      <p *ngIf="structure.remoteAccompaniment">Accompagnement à distance</p>
     </section>
 
     <!-- Publics -->
diff --git a/src/app/utils/formUtils.ts b/src/app/utils/formUtils.ts
index 93b9851da..2d66f481f 100644
--- a/src/app/utils/formUtils.ts
+++ b/src/app/utils/formUtils.ts
@@ -110,7 +110,6 @@ export class FormUtils {
           advancedSkills: new UntypedFormControl(structure.categories?.advancedSkills),
           solidarityMaterial: this.loadArrayForCheckbox(structure.categories?.solidarityMaterial, false),
         }),
-        remoteAccompaniment: new UntypedFormControl(false),
         otherDescription: new UntypedFormControl(structure.otherDescription),
         nbComputers: new UntypedFormControl(
           structure.categories.selfServiceMaterial.includes('computer') ? structure.nbComputers : 0,
-- 
GitLab