From e0411d926ce0239918504ec3f275c3d89d250673 Mon Sep 17 00:00:00 2001 From: hnouts <hnouts@grandlyon.com> Date: Wed, 26 Jul 2023 15:08:56 +0200 Subject: [PATCH] fix(edit-structure): warning when structureType field is missing --- .../structure-edition-summary.component.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/profile/structure-edition-summary/structure-edition-summary.component.html b/src/app/profile/structure-edition-summary/structure-edition-summary.component.html index a40d19511..4984c9981 100644 --- a/src/app/profile/structure-edition-summary/structure-edition-summary.component.html +++ b/src/app/profile/structure-edition-summary/structure-edition-summary.component.html @@ -62,8 +62,10 @@ /> </div> <div class="content"> - <p>{{ structure.structureType?.category }} - {{ structure.getLabelTypeStructure() }}</p> - </div> + <app-missing-information *ngIf="!isFieldValid('structureType')" /> + <p *ngIf="isFieldValid('structureType')"> + <p>{{ structure.structureType?.category }} - {{ structure.getLabelTypeStructure() }}</p> + </div> </div> <div class="section phoneAndMail"> -- GitLab