All files / src/app/pages/checkout-address checkout-address-page.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 281x                                                      
<div data-testing-id="checkout-address-page">
  @if (basket$ | async; as basket) {
    @if ((currentUser$ | async) || (validBasketAddresses$ | async) || nextStepRequested) {
      <h1>
        <span id="page-main-content" tabindex="-1">{{ 'checkout.addresses.heading' | translate }}</span>
      </h1>
      <ish-checkout-address
        [basket]="basket"
        [error]="(basketError$ | async) || (addressesError$ | async)"
        (nextStep)="nextStep()"
      />
    } @else {
      <h1>
        <span id="page-main-content" tabindex="-1">{{ 'checkout.addresses.heading.anonymous' | translate }}</span>
      </h1>
      <!-- empty h1 to provide space -->
      <ish-checkout-address-anonymous
        [basket]="basket"
        [error]="(basketError$ | async) || (addressesError$ | async)"
        (nextStep)="nextStep()"
      />
    }
  }
  @if ((basketLoading$ | async) || (addressesLoading$ | async)) {
    <ish-loading />
  }
</div>