diff --git a/src/js/client.js b/src/js/client.js index a11085a2e..5e35baf13 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -257,7 +257,7 @@ angular.module('Application').filter('prettyDecimalSize', function () { }); angular.module('Application').filter('prettyBinarySize', function () { - return function (size, fallback) { return prettyDecimalSize(size, fallback) || '0 KiB'; }; + return function (size, fallback) { return prettyBinarySize(size, fallback) || '0 KiB'; }; }); angular.module('Application').filter('prettyDiskSize', function () { diff --git a/src/views/app.html b/src/views/app.html index 1680689d4..16a9c97e2 100644 --- a/src/views/app.html +++ b/src/views/app.html @@ -924,7 +924,7 @@
- +
diff --git a/src/views/backups.html b/src/views/backups.html index 33a0f6a1f..ae64a2ff9 100644 --- a/src/views/backups.html +++ b/src/views/backups.html @@ -384,7 +384,7 @@
- +

{{ 'backups.configureBackupStorage.uploadPartSizeDescription' | tr }}

diff --git a/src/views/email.html b/src/views/email.html index ee6334588..8c5dc0ece 100644 --- a/src/views/email.html +++ b/src/views/email.html @@ -159,7 +159,7 @@
- +
diff --git a/src/views/email.js b/src/views/email.js index 198755b1c..bb4eb5705 100644 --- a/src/views/email.js +++ b/src/views/email.js @@ -42,7 +42,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio $scope.domain = null; $scope.adminDomain = null; $scope.diskUsage = {}; - $scope.storageQuotaTicks = [ 1*1024*1024*1024, 15*1024*1024*1024, 50*1024*1024*1024, 100*1024*1024*1024 ]; + $scope.storageQuotaTicks = [ 1*1000*1000*1000, 15*1000*1000*1000, 50*1000*1000*1000, 100*1000*1000*1000 ]; $scope.expectedDnsRecords = { mx: { }, @@ -638,7 +638,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio } function done() { - $scope.diskUsage[$scope.mailboxes.edit.name + '@' + $scope.domain.domain].quotaLimit = $scope.mailboxes.edit.storageQuotaEnabled ? $scope.mailboxes.edit.storageQuota/1024 : 0; // hack to avoid refresh + $scope.diskUsage[$scope.mailboxes.edit.name + '@' + $scope.domain.domain].quotaLimit = $scope.mailboxes.edit.storageQuotaEnabled ? $scope.mailboxes.edit.storageQuota/1000 : 0; // hack to avoid refresh $scope.mailboxes.edit.busy = false; $scope.mailboxes.edit.error = null; @@ -709,8 +709,8 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio m.ownerDisplayName = m.owner ? m.owner.display : ''; // this meta property is set when we get the user list var u = $scope.diskUsage[m.name + '@' + m.domain]; // this is unset when no emails have been received yet - m.usage = (u && u.quotaValue * 1024) || 0; - m.limit = (u && u.quotaLimit * 1024) || 0; + m.usage = (u && u.quotaValue * 1000) || 0; + m.limit = (u && u.quotaLimit * 1000) || 0; }); $scope.mailboxes.mailboxes = mailboxes; diff --git a/src/views/emails.html b/src/views/emails.html index df41a2884..d6be62683 100644 --- a/src/views/emails.html +++ b/src/views/emails.html @@ -58,7 +58,7 @@
- +