diff --git a/src/app/constants.js b/src/app/constants.js index 77dffe75ea..6e1c59aa06 100644 --- a/src/app/constants.js +++ b/src/app/constants.js @@ -120,5 +120,14 @@ angular.module('bit') annualPlanType: 'enterpriseAnnually', upgradeSortOrder: 3 } + }, + storageGb: { + price: 0.33, + monthlyPrice: 0.50, + yearlyPrice: 4 + }, + premium: { + price: 10, + yearlyPrice: 10 } }); diff --git a/src/app/organization/organizationBillingController.js b/src/app/organization/organizationBillingController.js index 6703e8e807..796e90195a 100644 --- a/src/app/organization/organizationBillingController.js +++ b/src/app/organization/organizationBillingController.js @@ -103,6 +103,17 @@ seats: org.Seats }; + $scope.storage = null; + if ($scope && org.MaxStorageGb) { + $scope.storage = { + currentGb: org.StorageGb || 0, + maxGb: org.MaxStorageGb, + currentName: org.StorageName || '0 GB' + }; + + $scope.storage.percentage = +($scope.storage.currentGb / $scope.storage.maxGb).toFixed(2); + } + $scope.subscription = null; if (org.Subscription) { $scope.subscription = { diff --git a/src/app/organization/views/organizationBilling.html b/src/app/organization/views/organizationBilling.html index 7d6ff2cf46..14c6ebe277 100644 --- a/src/app/organization/views/organizationBilling.html +++ b/src/app/organization/views/organizationBilling.html @@ -99,6 +99,32 @@ +
+ You plan has a total of {{storage.maxGb}} GB of encrypted file storage. + You are currently using {{storage.currentName}}. +
+You membership has a total of x GB of encrypted file storage. You are currently using y GB.
++ You membership has a total of {{storage.maxGb}} GB of encrypted file storage. + You are currently using {{storage.currentName}}. +
+ Your plan comes with 1 GB of encrypted file storage. You can add additional + storage for {{storageGb.price | currency:"$":2}} per GB /month. +
+