-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use ProductsListComponent for wishlist widget component (#1408)
* by using the generic Products List component failed products are no longer rendered
- Loading branch information
1 parent
5fbdfb6
commit 3486687
Showing
3 changed files
with
34 additions
and
57 deletions.
There are no files selected for viewing
26 changes: 12 additions & 14 deletions
26
src/app/extensions/wishlists/shared/wishlist-widget/wishlist-widget.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
<div class="section"> | ||
<h3>{{ 'account.wishlists.widget.heading' | translate }}</h3> | ||
<ng-container *ngIf="allWishlistsItemsSkus$ | async as itemSku"> | ||
<ng-container *ngIf="itemSku.length > 0; else noItems" class="section"> | ||
<div class="product-list"> | ||
<swiper [config]="swiperConfig"> | ||
<ng-template *ngFor="let sku of itemSku" swiperSlide> | ||
<ish-product-item | ||
displayType="tile" | ||
ishProductContext | ||
[sku]="sku" | ||
[configuration]="tileConfiguration" | ||
></ish-product-item> | ||
</ng-template> | ||
</swiper> | ||
<ng-container *ngIf="allWishlistsItemsSkus$ | async as wishlistsItemsSkus"> | ||
<ng-container *ngIf="wishlistsItemsSkus.length > 0; else noItems" class="section"> | ||
<div class="product-list" data-testing-id="wishlistProductsList"> | ||
<ish-products-list | ||
[productSKUs]="wishlistsItemsSkus" | ||
listStyle="carousel" | ||
listItemStyle="tile" | ||
[listItemConfiguration]="tileConfiguration" | ||
></ish-products-list> | ||
</div> | ||
</ng-container> | ||
<ng-template #noItems> | ||
<p>{{ 'account.wishlists.no_items' | translate }}</p> | ||
</ng-template> | ||
</ng-container> | ||
<a routerLink="/account/wishlists">{{ 'account.overview.wishlist.view_all' | translate }}</a> | ||
<a routerLink="/account/wishlists" data-testing-id="emptyWishlistProductsList">{{ | ||
'account.overview.wishlist.view_all' | translate | ||
}}</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters