All files / src/app/extensions/quoting/shared/product-add-to-quote product-add-to-quote.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                                        
<div class="d-grid">
  <button
    *ngIf="visible$ | async"
    type="submit"
    class="btn"
    [ngClass]="cssClass"
    [disabled]="disabled$ | async"
    [title]="displayType === 'icon' ? ('quote.add_product_to_quote.button.add_to_quote.label' | translate) : ''"
    [tabindex]="ariaHidden ? -1 : 0"
    [attr.aria-hidden]="ariaHidden"
    (click)="addToQuote()"
    data-testing-id="addToQuoteButton"
  >
    <ng-container *ngIf="displayType === 'icon'; else defaultButton">
      <fa-icon [icon]="['fas', 'inbox']" />
    </ng-container>
 
    <ng-template #defaultButton> {{ 'quote.add_product_to_quote.button.add_to_quote.label' | translate }} </ng-template>
  </button>
</div>