diff --git a/src/app/profile/profile-structure/profile-structure.component.html b/src/app/profile/profile-structure/profile-structure.component.html index 7d9dcad9011b9b719140af8a048d27c3bc192a19..2c541a36d208aa1278de886bdb09bbd7e2608458 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'" /> diff --git a/src/app/profile/structures-management/structures-management.component.html b/src/app/profile/structures-management/structures-management.component.html index 2010d95448ebd69f7cc7e9849876e403f4f1b215..50824a4d1b6926b185a90acec646764afef94e5f 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 06a2f773b73a33486cda13b556ca394a03244e2a..7ad19003071f2b8726bd91058bd41e6141e227fb 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"> diff --git a/src/app/structure-list/components/card/card.component.scss b/src/app/structure-list/components/card/card.component.scss index 89836ae30b2de9800638a44844ae8e0a128815b7..8e7738a8b098069374f514338e6560658192f6f3 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;