All files / src/app/extensions/punchout/pages/account-punchout/account-punchout-header account-punchout-header.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 21 22 23 24 252x                                                
<h1>
  {{ 'account.punchout.heading' | translate }}
  <a *ngIf="selectedType === 'oci'" routerLink="configuration" class="btn btn-secondary">{{
    'account.punchout.configuration.button.label' | translate
  }}</a>
</h1>
<ish-error-message [error]="error" />
 
<p *ngIf="punchoutTypes?.length > 0; else noPunchoutTypes">
  {{ 'account.punchout.subtitle' | translate }}
</p>
<ng-template #noPunchoutTypes>
  <ish-info-message message="account.punchout.no.protocols.info" [toast]="false" />
</ng-template>
 
<div *ngIf="punchoutTypes?.length > 1">
  <ul ngbNav class="nav-tabs section" [(activeId)]="selectedType">
    <li *ngFor="let type of punchoutTypes" [ngbNavItem]="type" role="presentation">
      <a ngbNavLink [routerLink]="['../punchout']" [queryParams]="{ format: type }" class="mb-0">{{
        'account.punchout.type.text' | translate : { '0': type }
      }}</a>
    </li>
  </ul>
</div>