-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: display only available products in product links carousels and …
…lists (#626) Co-authored-by: Danilo Hoffmann <hoffmann@evident.nl> Co-authored-by: Silke <s.grueber@intershop.de> Co-authored-by: Stefan Hauke <s.hauke@intershop.de>
- Loading branch information
1 parent
76c9074
commit 386a584
Showing
7 changed files
with
129 additions
and
40 deletions.
There are no files selected for viewing
26 changes: 14 additions & 12 deletions
26
src/app/pages/product/product-links-carousel/product-links-carousel.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,14 +1,16 @@ | ||
<div *ngIf="links.products.length" class="product-list-container"> | ||
<h2>{{ productLinkTitle }}</h2> | ||
<ng-container *ngIf="productSKUs$ | async as productSKUs"> | ||
<div *ngIf="productSKUs.length" class="product-list-container"> | ||
<h2>{{ productLinkTitle }}</h2> | ||
|
||
<div class="product-list"> | ||
<swiper [config]="swiperConfig"> | ||
<div *ngFor="let sku of links.products" class="swiper-slide"> | ||
<ng-template swiperSlide> | ||
<ish-product-item ishProductContext [sku]="sku"></ish-product-item> | ||
</ng-template> | ||
</div> | ||
</swiper> | ||
<div class="swiper-pagination"></div> | ||
<div class="product-list"> | ||
<swiper [config]="swiperConfig"> | ||
<div *ngFor="let sku of productSKUs" class="swiper-slide"> | ||
<ng-template swiperSlide> | ||
<ish-product-item ishProductContext [sku]="sku"></ish-product-item> | ||
</ng-template> | ||
</div> | ||
</swiper> | ||
<div class="swiper-pagination"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</ng-container> |
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
14 changes: 8 additions & 6 deletions
14
src/app/pages/product/product-links-list/product-links-list.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,8 +1,10 @@ | ||
<div *ngIf="links.products.length" class="product-list-container"> | ||
<h2>{{ productLinkTitle }}</h2> | ||
<div class="product-list"> | ||
<div *ngFor="let sku of links.products" class="product-list-item list-view"> | ||
<ish-product-item ishProductContext [sku]="sku" displayType="row"></ish-product-item> | ||
<ng-container *ngIf="productSKUs$ | async as productSKUs"> | ||
<div *ngIf="productSKUs.length" class="product-list-container"> | ||
<h2>{{ productLinkTitle }}</h2> | ||
<div class="product-list"> | ||
<div *ngFor="let sku of productSKUs" class="product-list-item list-view"> | ||
<ish-product-item ishProductContext [sku]="sku" displayType="row"></ish-product-item> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</ng-container> |
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
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