diff --git a/src/app/profile/profile.component.html b/src/app/profile/profile.component.html index 983c85ebf9a361ce1b587c4b88c72f100306054f..0977efafd30cf5ae78771ba147b2a982c3cd1686 100644 --- a/src/app/profile/profile.component.html +++ b/src/app/profile/profile.component.html @@ -90,8 +90,9 @@ class="structuresContainer" *ngIf="userProfile.structuresLink.length > 0 || userProfile.pendingStructuresLink.length > 0" > - <div *ngFor="let structure of pendingStructures; let i = index"> + <ng-container *ngIf="!this.isPublic"> <app-profile-structure + *ngFor="let structure of pendingStructures; let i = index" [structureWithOwners]="structure" [userProfile]="this.userProfile" [isPublic]="this.isPublic" @@ -99,18 +100,17 @@ [joinRequestDate]="userProfile.pendingStructuresLink[i].createdAt" (cancelJoin)="cancelJoin($event)" ></app-profile-structure> - </div> - <div *ngFor="let structure of structures; let i = index"> - <app-profile-structure - [structureWithOwners]="structure" - [userProfile]="this.userProfile" - [isPublic]="this.isPublic" - ></app-profile-structure> - </div> + </ng-container> + <app-profile-structure + *ngFor="let structure of structures; let i = index" + [structureWithOwners]="structure" + [userProfile]="this.userProfile" + [isPublic]="this.isPublic" + ></app-profile-structure> </div> <app-button - class="addStructure" *ngIf="!isPublic" + class="addStructure" [style]="buttonTypeEnum.SecondaryUltraWide" [iconBtn]="'add'" [text]="'Ajouter une structure'"