display usage info

This commit is contained in:
Girish Ramakrishnan
2020-02-20 12:08:56 -08:00
parent 1ef5fd1a0f
commit 5fd575a217
3 changed files with 25 additions and 1 deletions

View File

@@ -391,7 +391,13 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
return m;
});
callback();
Client.getMailUsage($scope.domain.domain, function (error, usage) {
if (error) return callback(error);
$scope.mailboxes.mailboxes.forEach(function (m) { m.usage = usage[m.name].size || 0; });
callback();
});
});
});
}