display usage info
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user