mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-28 17:27:50 +01:00
enable paypal for orgs. and paypal method changes
This commit is contained in:
parent
459bc69032
commit
b47f7e8cf1
@ -1,16 +1,7 @@
|
||||
<app-callout title="{{'contactSupport' | i18n}}" icon="fa-info-circle" *ngIf="!canChange">
|
||||
<p>{{'contactSupportPaymentMethod' | i18n}}</p>
|
||||
<a href="https://bitwarden.com/contact/" target="_blank" rel="noopener" class="btn btn-outline-secondary">
|
||||
{{'contactSupport' | i18n}}
|
||||
</a>
|
||||
<button type="button" class="btn btn-outline-secondary" (click)="cancel()">
|
||||
{{'close' | i18n}}
|
||||
</button>
|
||||
</app-callout>
|
||||
<form #form class="card" (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate *ngIf="canChange">
|
||||
<form #form class="card" (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate>
|
||||
<div class="card-body">
|
||||
<h3 class="card-body-header">{{(currentType != null ? 'changePaymentMethod' : 'addPaymentMethod') | i18n}}</h3>
|
||||
<app-payment [showOptions]="organizationId" [hidePaypal]="true" [hideBank]="!organizationId"></app-payment>
|
||||
<app-payment [hideBank]="!organizationId"></app-payment>
|
||||
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
|
||||
<i class="fa fa-spinner fa-spin" title="{{'loading' | i18n}}"></i>
|
||||
<span>{{'submit' | i18n}}</span>
|
||||
|
@ -59,8 +59,4 @@ export class AdjustPaymentComponent {
|
||||
cancel() {
|
||||
this.onCanceled.emit();
|
||||
}
|
||||
|
||||
get canChange() {
|
||||
return this.currentType == null || this.currentType === PaymentMethodType.Card || this.organizationId != null;
|
||||
}
|
||||
}
|
||||
|
@ -183,7 +183,7 @@
|
||||
</div>
|
||||
<small class="text-muted font-italic">{{'paymentChargedWithTrial' | i18n : (interval | i18n) }}</small>
|
||||
<h2 class="spaced-header mb-4">{{'paymentInformation' | i18n}}</h2>
|
||||
<app-payment [hidePaypal]="true"></app-payment>
|
||||
<app-payment></app-payment>
|
||||
</ng-container>
|
||||
<div [ngClass]="{'mt-4': plans[plan].noPayment}">
|
||||
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
|
||||
|
@ -1731,9 +1731,6 @@
|
||||
"contactSupport": {
|
||||
"message": "Contact Customer Support"
|
||||
},
|
||||
"contactSupportPaymentMethod": {
|
||||
"message": "If you would like to change from this payment method please contact customer support."
|
||||
},
|
||||
"updatedPaymentMethod": {
|
||||
"message": "Updated payment method."
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user