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