All files / src/app/shared/components/line-item/line-item-warranty line-item-warranty.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 202x                                      
<!-- Warranty -->
@if ((productHasWarranties$ | async) && pli) {
  <div class="row">
    <!-- check if warranty can be edited, else only display its name -->
    <div class="offset-2 col-7 col-md-6 list-item pt-1">
      <ish-product-warranty
        [selectedWarrantySku]="pli.warranty?.sku"
        [viewType]="editable ? 'select' : 'display'"
        (submitWarranty)="updateLineItemWarranty($event)"
      />
    </div>
    @if (pli.warranty) {
      <!-- Warranty Single Price: TODO: is not yet available (#113013 - Warranty single price is missing in the basket REST interface) -->
      <div class="col-md-2 d-none d-md-block list-item column-price single-price"></div>
      <!-- Warranty Total Price -->
      <div class="col-3 col-md-2 list-item column-price">{{ pli.warranty.price | ishPrice }}</div>
    }
  </div>
}