Fixup mailbox count

This commit is contained in:
Girish Ramakrishnan
2020-07-15 15:35:32 -07:00
parent 3abdbdc7c9
commit 1fd4d772e4
2 changed files with 11 additions and 2 deletions
+9
View File
@@ -2148,6 +2148,15 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
};
// Mailboxes
Client.prototype.getMailboxCount = function (domain, callback) {
get('/api/v1/mail/' + domain + '/mailbox_count', null, function (error, data, status) {
if (error) return callback(error);
if (status !== 200) return callback(new ClientError(status, data));
callback(null, data.count);
});
};
Client.prototype.getMailboxes = function (domain, search, page, perPage, callback) {
var config = {
params: {