mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
account credit/balance
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 8b411de034...b95b35e7d9
@@ -8,7 +8,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<i class="fa fa-spinner fa-spin text-muted" *ngIf="!firstLoaded && loading" title="{{'loading' | i18n}}"></i>
|
<i class="fa fa-spinner fa-spin text-muted" *ngIf="!firstLoaded && loading" title="{{'loading' | i18n}}"></i>
|
||||||
<ng-container *ngIf="billing">
|
<ng-container *ngIf="billing">
|
||||||
<h2>{{'paymentMethod' | i18n}}</h2>
|
<h2>{{(isCreditBalance ? 'accountCredit' : 'accountBalance') | i18n}}</h2>
|
||||||
|
<p>{{creditOrBalance | currency:'$'}}</p>
|
||||||
|
<h2 class="spaced-header">{{'paymentMethod' | i18n}}</h2>
|
||||||
<p *ngIf="!paymentSource">{{'noPaymentMethod' | i18n}}</p>
|
<p *ngIf="!paymentSource">{{'noPaymentMethod' | i18n}}</p>
|
||||||
<ng-container *ngIf="paymentSource">
|
<ng-container *ngIf="paymentSource">
|
||||||
<app-callout type="warning" title="{{'verifyBankAccount' | i18n}}"
|
<app-callout type="warning" title="{{'verifyBankAccount' | i18n}}"
|
||||||
|
|||||||
@@ -81,6 +81,14 @@ export class UserBillingComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get isCreditBalance() {
|
||||||
|
return this.billing == null || this.billing.balance <= 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
get creditOrBalance() {
|
||||||
|
return Math.abs(this.billing != null ? this.billing.balance : 0);
|
||||||
|
}
|
||||||
|
|
||||||
get paymentSource() {
|
get paymentSource() {
|
||||||
return this.billing != null ? this.billing.paymentSource : null;
|
return this.billing != null ? this.billing.paymentSource : null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1490,6 +1490,18 @@
|
|||||||
"billing": {
|
"billing": {
|
||||||
"message": "Billing"
|
"message": "Billing"
|
||||||
},
|
},
|
||||||
|
"accountCredit": {
|
||||||
|
"message": "Account Credit",
|
||||||
|
"description": "Financial term. In the case of Bitwarden, a positive balance means that you owe money, while a negative balance means that you have a credit (Bitwarden owes you money)."
|
||||||
|
},
|
||||||
|
"accountBalance": {
|
||||||
|
"message": "Account Balance",
|
||||||
|
"description": "Financial term. In the case of Bitwarden, a positive balance means that you owe money, while a negative balance means that you have a credit (Bitwarden owes you money)."
|
||||||
|
},
|
||||||
|
"addCredit": {
|
||||||
|
"message": "Add Credit",
|
||||||
|
"description": "Add more credit to your account's balance."
|
||||||
|
},
|
||||||
"goPremium": {
|
"goPremium": {
|
||||||
"message": "Go Premium",
|
"message": "Go Premium",
|
||||||
"description": "Another way of saying \"Get a premium membership\""
|
"description": "Another way of saying \"Get a premium membership\""
|
||||||
|
|||||||
Reference in New Issue
Block a user