1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-27 03:11:35 +01:00

Resolve the bug on change payment method (#11202)

This commit is contained in:
cyprain-okeke 2024-09-23 19:23:53 +01:00 committed by GitHub
parent bcddf575a1
commit 08f0dadc2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -332,20 +332,16 @@
<!-- Payment info --> <!-- Payment info -->
<ng-container *ngIf="formGroup.value.productTier !== productTypes.Free"> <ng-container *ngIf="formGroup.value.productTier !== productTypes.Free">
<h2 bitTypography="h4">{{ "paymentMethod" | i18n }}</h2> <h2 bitTypography="h4">{{ "paymentMethod" | i18n }}</h2>
<p *ngIf="!showPayment && !deprecateStripeSourcesAPI"> <p *ngIf="!showPayment && (paymentSource || billing?.paymentSource)">
<i class="bwi bwi-fw" [ngClass]="paymentSourceClasses"></i> <i class="bwi bwi-fw" [ngClass]="paymentSourceClasses"></i>
{{ billing?.paymentSource?.description }} {{
<span class="ml-2 tw-text-primary-600 tw-cursor-pointer" (click)="toggleShowPayment()">{{ deprecateStripeSourcesAPI
"changePaymentMethod" | i18n ? paymentSource?.description
}}</span> : billing?.paymentSource?.description
<a></a> }}
</p> <span class="ml-2 tw-text-primary-600 tw-cursor-pointer" (click)="toggleShowPayment()">
<p *ngIf="!showPayment && deprecateStripeSourcesAPI"> {{ "changePaymentMethod" | i18n }}
<i class="bwi bwi-fw" [ngClass]="paymentSourceClasses"></i> </span>
{{ paymentSource?.description }}
<span class="ml-2 tw-text-primary-600 tw-cursor-pointer" (click)="toggleShowPayment()">{{
"changePaymentMethod" | i18n
}}</span>
<a></a> <a></a>
</p> </p>
<app-payment <app-payment