1
0
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:
Kyle Spearrin
2017-04-10 18:55:18 -04:00
parent 58df3e692b
commit cf22ea2b78
9 changed files with 70 additions and 58 deletions

View File

@@ -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 : '-',