All files / src/app/shared/components/product/product-shipment product-shipment.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 344x                                                                  
<ng-container *ngIf="visible$ | async">
  <div
    *ngIf="{
      readyForShipmentMin: readyForShipmentMin$ | async,
      readyForShipmentMax: readyForShipmentMax$ | async
    } as product"
    class="ready-for-shipment"
    data-testing-id="section-productshipping-shortinfo"
  >
    <ng-container *ngIf="product.readyForShipmentMin === 0; else shipmentRange">
      {{
        (product.readyForShipmentMax === 1
          ? 'product.ready_for_shipment.within24'
          : 'product.ready_for_shipment.within'
        ) | translate : { '0': product.readyForShipmentMax }
      }}
    </ng-container>
    <ng-template #shipmentRange>
      {{
        'product.ready_for_shipment.minmax'
          | translate : { '0': product.readyForShipmentMin, '1': product.readyForShipmentMax }
      }}
    </ng-template>
    <!-- details link and dialog -->
    <ish-modal-dialog-link
      linkText="product.ready_for_shipment.detail.text"
      [options]="{ titleText: 'shopping.product.readyforshipment.details.title' | translate, size: 'lg' }"
      [ngClass]="'details-link'"
    >
      <ish-content-include includeId="include.dialog.readyForShipment.pagelet2-Include" *ishLazyLoadingContent />
    </ish-modal-dialog-link>
  </div>
</ng-container>