All files / src/app/extensions/wishlists/pages/account-wishlist-detail account-wishlist-detail-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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 691x                                                                                                                                        
<!-- Error message -->
<ish-error-message [error]="wishlistError$ | async" />
 
<ng-container *ngIf="wishlist$ | async as wishlist">
  <ng-template #WishlistDescription>
    <span innerHTML="{{ 'account.wishlists.heading.tooltip.content' | translate }}"></span>
  </ng-template>
 
  <div>
    <a
      [ngbPopover]="WishlistDescription"
      placement="bottom"
      popoverTitle="{{ 'account.wishlists.heading.tooltip.headline' | translate }}"
      >{{ 'account.wishlists.heading.tooltip.link' | translate }} <fa-icon [icon]="['fas', 'info-circle']"
    /></a>
  </div>
 
  <button
    type="button"
    (click)="editWishlistDialog.show()"
    class="btn-tool btn-link float-right"
    [title]="'account.wishlist.header.edit_wishlist.label' | translate"
    data-testing-id="wishlist-details-edit"
  >
    <fa-icon icon="pencil-alt" />
  </button>
  <h1>{{ wishlist?.title }}</h1>
 
  <p *ngIf="wishlist?.preferred" data-testing-id="preferred-wishlist-text">
    {{ 'account.wishlist.header.preferred_wishlist' | translate }}
  </p>
 
  <div class="container">
    <ng-container *ngIf="wishlist.itemsCount && wishlist.itemsCount > 0; else noItems">
      <div class="list-header row">
        <div class="col-3 col-sm-3 list-header-item">{{ 'account.wishlist.table.header.item' | translate }}</div>
        <div class="col-sm-9 col-9 list-header-item column-price">
          {{ 'account.wishlist.table.header.price' | translate }}
        </div>
      </div>
      <div class="list-body">
        <ng-container *ngFor="let item of wishlist.items; trackBy: trackByFn">
          <div class="list-item-row">
            <ish-account-wishlist-detail-line-item
              ishProductContext
              [sku]="item.sku"
              [wishlistItemData]="item"
              [currentWishlist]="wishlist"
            />
          </div>
        </ng-container>
      </div>
    </ng-container>
  </div>
 
  <ng-template #noItems>
    <p>{{ 'account.wishlist.no_entries' | translate }}</p>
  </ng-template>
 
  <ish-wishlist-preferences-dialog
    #editWishlistDialog
    [wishlist]="wishlist"
    (submitWishlist)="editPreferences($event, wishlist.id)"
  />
</ng-container>
 
<a routerLink="/account/wishlists">{{ 'account.wishlist.searchform.return.link' | translate }}</a>
<ish-loading *ngIf="wishlistLoading$ | async" />