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 402x                                                                              
<div class="d-flex align-items-center justify-content-between flex-wrap">
  <h1>{{ 'account.punchout.heading' | translate }}</h1>
 
  @if (selectedType === 'oci') {
  <a routerLink="configuration" class="btn btn-secondary m-0">{{
    '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
    ngbNav
    class="nav-tabs"
    [(activeId)]="selectedType"
    [attr.aria-label]="'account.punchout.type.tabs.aria_label' | translate"
  >
    @for (type of punchoutTypes; track type) {
    <ng-container [ngbNavItem]="type">
      <a
        ngbNavLink
        [routerLink]="['../punchout']"
        [queryParams]="{ format: type }"
        [attr.data-testing-id]="'account-punchout-tab-' + type"
        >{{ 'account.punchout.type.text' | translate : { '0': type } }}</a
      >
    </ng-container>
    }
  </nav>
</div>
}