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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 412x                                                                                
<div class="d-flex align-items-center justify-content-between flex-wrap">
  <h1>{{ 'account.punchout.heading' | translate }}</h1>
 
  @if (selectedType === 'oci') {
    <a class="btn btn-secondary m-0" routerLink="configuration">{{
      'account.punchout.configuration.button.label' | translate
    }}</a>
  }
</div>
<ish-error-message [error]="error" />
 
@if (punchoutTypes?.length > 0) {
  <p>
    {{ 'account.punchout.subtitle' | translate }}
  </p>
} @else {
  <ish-info-message message="account.punchout.no.protocols.info" [toast]="false" />
}
@if (punchoutTypes?.length > 1) {
  <div>
    <nav
      class="nav-tabs"
      ngbNav
      [attr.aria-label]="'account.punchout.type.tabs.aria_label' | translate"
      [(activeId)]="selectedType"
    >
      @for (type of punchoutTypes; track type) {
        <ng-container [ngbNavItem]="type">
          <a
            ngbNavLink
            [attr.data-testing-id]="'account-punchout-tab-' + type"
            [queryParams]="{ format: type }"
            [routerLink]="['../punchout']"
            >{{ 'account.punchout.type.text' | translate: { '0': type } }}</a
          >
        </ng-container>
      }
    </nav>
  </div>
}