mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 10:13:31 +00:00
move some values to constants for better sharing
This commit is contained in:
@@ -76,6 +76,8 @@
|
||||
$scope.loading = false;
|
||||
$scope.noSubscription = org.PlanType === 0;
|
||||
|
||||
var i = 0;
|
||||
|
||||
$scope.plan = {
|
||||
name: org.Plan,
|
||||
type: org.PlanType,
|
||||
@@ -103,7 +105,7 @@
|
||||
|
||||
if (org.Subscription && org.Subscription.Items) {
|
||||
$scope.subscription.items = [];
|
||||
for (var i = 0; i < org.Subscription.Items.length; i++) {
|
||||
for (i = 0; i < org.Subscription.Items.length; i++) {
|
||||
$scope.subscription.items.push({
|
||||
amount: org.Subscription.Items[i].Amount,
|
||||
name: org.Subscription.Items[i].Name,
|
||||
@@ -123,7 +125,7 @@
|
||||
}
|
||||
|
||||
var charges = [];
|
||||
for (var i = 0; i < org.Charges.length; i++) {
|
||||
for (i = 0; i < org.Charges.length; i++) {
|
||||
charges.push({
|
||||
date: org.Charges[i].CreatedDate,
|
||||
paymentSource: org.Charges[i].PaymentSource ? org.Charges[i].PaymentSource.Description : '-',
|
||||
|
||||
Reference in New Issue
Block a user