1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 10:13:31 +00:00

storage for org billing & signup

This commit is contained in:
Kyle Spearrin
2017-07-11 10:24:46 -04:00
parent 25536e10ef
commit ea4d772dda
10 changed files with 127 additions and 14 deletions

View File

@@ -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 = {