-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: hide payment info card when empty (#17880)
CXSPA-4069 Payment Info card needs to be hidden when it contains no values, it is a common use case of OPF feature.
- Loading branch information
1 parent
68705ca
commit b1ee25b
Showing
5 changed files
with
75 additions
and
16 deletions.
There are no files selected for viewing
45 changes: 34 additions & 11 deletions
45
...s/order/components/order-details/order-detail-billing/order-detail-billing.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,15 +1,38 @@ | ||
<div class="cx-order-items" *ngIf="order$ | async as order"> | ||
<div class="cx-review-summary" *ngIf="order.paymentInfo as paymentDetails"> | ||
<div class="cx-review-summary-card cx-review-summary-payment-card"> | ||
<cx-card | ||
[content]="getPaymentMethodCard(paymentDetails) | async" | ||
></cx-card> | ||
</div> | ||
|
||
<div class="cx-review-summary-card cx-review-summary-payment-card"> | ||
<cx-card | ||
[content]="getBillingAddressCard(paymentDetails) | async" | ||
></cx-card> | ||
</div> | ||
<ng-container *cxFeatureLevel="'!6.6'"> | ||
<div class="cx-review-summary-card cx-review-summary-payment-card"> | ||
<cx-card | ||
[content]="getPaymentMethodCard(paymentDetails) | async" | ||
></cx-card> | ||
</div> | ||
</ng-container> | ||
<ng-container *cxFeatureLevel="'6.6'"> | ||
<div | ||
class="cx-review-summary-card cx-review-summary-payment-card" | ||
*ngIf="isPaymentInfoCardFull(paymentDetails)" | ||
> | ||
<cx-card | ||
[content]="getPaymentMethodCard(paymentDetails) | async" | ||
></cx-card> | ||
</div> | ||
</ng-container> | ||
<ng-container *cxFeatureLevel="'!6.6'"> | ||
<div class="cx-review-summary-card cx-review-summary-payment-card"> | ||
<cx-card | ||
[content]="getBillingAddressCard(paymentDetails) | async" | ||
></cx-card> | ||
</div> | ||
</ng-container> | ||
<ng-container *cxFeatureLevel="'6.6'"> | ||
<div | ||
class="cx-review-summary-card cx-review-summary-payment-card" | ||
*ngIf="paymentDetails?.billingAddress" | ||
> | ||
<cx-card | ||
[content]="getBillingAddressCard(paymentDetails) | async" | ||
></cx-card> | ||
</div> | ||
</ng-container> | ||
</div> | ||
</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
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