From 0232284a31c829a1665e01bfc46fa34255012650 Mon Sep 17 00:00:00 2001
From: Etienne LOUPIAS <eloupias@grandlyon.com>
Date: Tue, 12 Mar 2024 14:24:25 +0100
Subject: [PATCH] fix(profile): add message if no social worker in structure

---
 .../profile-structure/profile-structure.component.html   | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/app/profile/profile-structure/profile-structure.component.html b/src/app/profile/profile-structure/profile-structure.component.html
index 804302d5d..c21ec7c55 100644
--- a/src/app/profile/profile-structure/profile-structure.component.html
+++ b/src/app/profile/profile-structure/profile-structure.component.html
@@ -108,7 +108,7 @@
         [isPublic]="isPublic"
       />
     </div>
-    <div *ngIf="membersWithJobWithPO.length > 0" class="section">
+    <div class="section">
       <div class="sectionHeader">
         <p class="sectionTitle uppercase">Accompagnant·es numériques</p>
         <app-button
@@ -132,7 +132,7 @@
           [queryParams]="{ id: structure._id }"
         />
       </div>
-      <div class="sectionContent members">
+      <div *ngIf="membersWithJobWithPO.length > 0" class="sectionContent members">
         <app-member-card
           *ngFor="let member of membersWithJobWithPO"
           [member]="member"
@@ -140,6 +140,11 @@
           [showEmployer]="false"
         />
       </div>
+      <div *ngIf="membersWithJobWithPO.length === 0" class="sectionContent infoSection">
+        Aucun accompagnant numérique n’est référencé dans cette structure.<ng-container *ngIf="!isPending">
+          Si vous souhaitez en inviter, cliquez sur le bouton “Gérer les membres” ci-dessus.</ng-container
+        >
+      </div>
     </div>
     <div
       *ngIf="!isPublic && !this.personalOffer && userProfile.job?.hasPersonalOffer && !isPending"
-- 
GitLab