mail: add pagination to mailboxes UI

This commit is contained in:
Girish Ramakrishnan
2020-07-05 12:18:34 -07:00
parent f51eccdef7
commit 2e5e459094
3 changed files with 47 additions and 19 deletions

View File

@@ -2111,11 +2111,12 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
};
// Mailboxes
Client.prototype.getMailboxes = function (domain, callback) {
Client.prototype.getMailboxes = function (domain, search, page, perPage, callback) {
var config = {
params: {
page: 1,
per_page: 1000
search: search,
page: page,
per_page: perPage
}
};