mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
Merged PR 719: #1912 PDP Status nicht lieferbar prüfen
#1912 PDP Status nicht lieferbar prüfen Related work items: #1912
This commit is contained in:
committed by
Lorenz Hilpert
parent
59e789603f
commit
196276aa04
@@ -151,7 +151,13 @@
|
||||
<button *ngIf="!(store.isDownload$ | async)" class="cta-availabilities" (click)="showAvailabilities()">
|
||||
weitere Verfügbarkeiten
|
||||
</button>
|
||||
<button class="cta-continue" (click)="showPurchasingModal()" [disabled]="fetchingAvailabilities$ | async">In den Warenkorb</button>
|
||||
<button
|
||||
class="cta-continue"
|
||||
(click)="showPurchasingModal()"
|
||||
[disabled]="!(isAvailable$ | async) || (fetchingAvailabilities$ | async)"
|
||||
>
|
||||
In den Warenkorb
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="product-formats" *ngIf="item.family?.length > 0">
|
||||
|
||||
@@ -39,6 +39,14 @@ export class ArticleDetailsComponent implements OnInit, OnDestroy {
|
||||
this.store.fetchingTakeAwayAvailability$,
|
||||
]).pipe(map((values) => values.some((v) => v)));
|
||||
|
||||
isAvailable$ = combineLatest([
|
||||
this.store.isDeliveryAvailabilityAvailable$,
|
||||
this.store.isDeliveryDigAvailabilityAvailable$,
|
||||
this.store.isDeliveryB2BAvailabilityAvailable$,
|
||||
this.store.isPickUpAvailabilityAvailable$,
|
||||
this.store.isTakeAwayAvailabilityAvailable$,
|
||||
]).pipe(map((values) => values.some((v) => v)));
|
||||
|
||||
showDeliveryTruck$ = combineLatest([this.store.isDeliveryAvailabilityAvailable$, this.store.isDeliveryDigAvailabilityAvailable$]).pipe(
|
||||
map(([delivery, digDelivery]) => delivery || digDelivery)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user