All files / src/app/shared/components/basket/basket-items-summary basket-items-summary.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 41 42 43 44 45 464x                                                                                          
<div *ngIf="basket?.lineItems" class="cart-summary">
  <div *ngFor="let pli of basket.lineItems; index as i" class="row cart-summary-checkout">
    <ng-container *ngIf="isItemVisible(i)">
      <!-- product name and price -->
      <div class="col-8">
        <ish-product-name ishProductContext [sku]="pli.productSKU" />
      </div>
      <div class="col-4 text-right pt-1">{{ pli.totals.total | ishPrice }}</div>
 
      <!-- quantity and undiscounted price -->
      <div class="col-8 cart-pli-data">
        <span> {{ 'checkout.pli.qty.label' | translate }} {{ pli.quantity.value }} </span>
      </div>
      <div class="col-4 text-right">
        <div *ngIf="pli.totals.valueRebatesTotal" class="old-price">
          <span class="price-value">{{ pli.totals.undiscountedTotal | ishPrice }}</span>
        </div>
        <div *ngIf="pli.isFreeGift" class="list-item-promo">{{ 'checkout.pli.freegift.text' | translate }}</div>
      </div>
 
      <!-- promotions -->
      <div *ngIf="pli.valueRebates?.length" class="col-12">
        <ng-container *ngFor="let rebate of pli.valueRebates">
          <ish-basket-promotion [rebate]="rebate" />
        </ng-container>
      </div>
 
      <!-- warranty -->
      <ng-container *ngIf="pli.warranty">
        <div class="col-8">{{ pli.warranty.sku }}</div>
        <div class="col-4 text-right">{{ pli.warranty.price | ishPrice }}</div>
      </ng-container>
    </ng-container>
  </div>
 
  <!-- 'Show All' and 'Hide All' links -->
  <button *ngIf="isShowAllLinkVisible()" type="button" class="btn btn-link btn-link-action" (click)="toggleCollapse()">
    {{ 'checkout.show_all.link' | translate : { '0': basket.lineItems.length } }}&nbsp;
    <fa-icon [icon]="['fas', 'angle-down']" />
  </button>
  <button *ngIf="isHideLinkVisible()" type="button" class="btn btn-link btn-link-action" (click)="toggleCollapse()">
    {{ 'checkout.hide_all.link' | translate }}&nbsp;
    <fa-icon [icon]="['fas', 'angle-up']" />
  </button>
</div>