From 5798f5be4b67bce5296befe8356bdfdea8fc2492 Mon Sep 17 00:00:00 2001
From: Bastien Dumont <bdumont@grandlyon.com>
Date: Wed, 13 Dec 2023 15:07:39 +0100
Subject: [PATCH 1/3] check structureType

---
 .../structures-management.component.html                   | 1 +
 src/app/structure-list/components/card/card.component.html | 7 ++++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/app/profile/structures-management/structures-management.component.html b/src/app/profile/structures-management/structures-management.component.html
index 2010d9544..50824a4d1 100644
--- a/src/app/profile/structures-management/structures-management.component.html
+++ b/src/app/profile/structures-management/structures-management.component.html
@@ -26,6 +26,7 @@
         <div class="structureDetails">
           <h2 class="structureName">{{ elt.structure.structureName }}</h2>
           <app-v3-tag-item
+            *ngIf="elt.structure.structureType?.value"
             [clickable]="false"
             [label]="elt.structure.structureType.value"
             [size]="'small'"
diff --git a/src/app/structure-list/components/card/card.component.html b/src/app/structure-list/components/card/card.component.html
index 06a2f773b..7ad190030 100644
--- a/src/app/structure-list/components/card/card.component.html
+++ b/src/app/structure-list/components/card/card.component.html
@@ -13,7 +13,12 @@
       <span class="structureName" [ngClass]="{ notClaimed: structure.hasNoUserDN && profileService.isAdmin() }">
         {{ structure.structureName }}
       </span>
-      <app-v3-tag-item [label]="structure.structureType.value" [color]="'red'" [size]="'small'" />
+      <app-v3-tag-item
+        *ngIf="structure.structureType?.value"
+        [label]="structure.structureType.value"
+        [color]="'red'"
+        [size]="'small'"
+      />
       <div class="inline">
         <app-svg-icon [type]="'tags'" [icon]="'address'" [iconClass]="'icon-20'" />
         <ng-container *ngIf="structure.distance">
-- 
GitLab


From efb657b592bf188b17945a045052676d7183da46 Mon Sep 17 00:00:00 2001
From: Bastien Dumont <bdumont@grandlyon.com>
Date: Thu, 14 Dec 2023 09:10:59 +0100
Subject: [PATCH 2/3] center structure without type

---
 src/app/structure-list/components/card/card.component.scss | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/app/structure-list/components/card/card.component.scss b/src/app/structure-list/components/card/card.component.scss
index 89836ae30..8e7738a8b 100644
--- a/src/app/structure-list/components/card/card.component.scss
+++ b/src/app/structure-list/components/card/card.component.scss
@@ -30,6 +30,7 @@
     .structureDetails {
       display: flex;
       flex-direction: column;
+      justify-content: center;
       gap: 8px;
       .structureName {
         @include font-bold-18;
-- 
GitLab


From 48aa86b9468f7e668ee80cada3a21dc84a45a1ef Mon Sep 17 00:00:00 2001
From: Bastien Dumont <bdumont@grandlyon.com>
Date: Thu, 14 Dec 2023 09:18:19 +0100
Subject: [PATCH 3/3] tag in profile

---
 .../profile/profile-structure/profile-structure.component.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/app/profile/profile-structure/profile-structure.component.html b/src/app/profile/profile-structure/profile-structure.component.html
index 7d9dcad90..2c541a36d 100644
--- a/src/app/profile/profile-structure/profile-structure.component.html
+++ b/src/app/profile/profile-structure/profile-structure.component.html
@@ -6,8 +6,9 @@
         <div class="structureInfos">
           <p class="structureName">{{ structure.structureName }}</p>
           <app-v3-tag-item
+            *ngIf="structure.structureType?.value"
+            [label]="structure.structureType?.value"
             [clickable]="false"
-            [label]="structure.structureType?.category"
             [size]="'small'"
             [color]="'red'"
           />
-- 
GitLab