All files / src/app/extensions/tacton/pages/configure/tacton-group tacton-group.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 211x                                        
<ng-container *ngIf="group?.hasVisibleParameters">
  <h2 [id]="'anchor-' + group.name" *ngIf="!level; else subGroup">{{ group?.description }}</h2>
  <ng-template #subGroup>
    <span class="anchor" [id]="'anchor-' + group.name"></span>
    <h3 ishIntersectionObserver (visibilityChange)="onIntersection(group.name, $event)">{{ group.description }}</h3>
  </ng-template>
  <img
    *ngIf="group.properties?.tc_group_picture"
    [src]="getImageUrl(group.properties?.tc_group_picture) | async"
    [attr.alt]="group.name"
  />
 
  <ng-container *ngFor="let item of group?.members; let last = last">
    <ish-tacton-group *ngIf="isGroup(item); else parameter" [group]="item" [level]="level + 1" />
    <ng-template #parameter>
      <ish-tacton-parameter *ngIf="isParameter(item)" [item]="item" />
    </ng-template>
    <span *ngIf="!last" ishIntersectionObserver (visibilityChange)="onIntersection(group.name, $event)"></span>
  </ng-container>
</ng-container>