mail: move the next/prev page buttons to header

aligns with other ui like activity and mailbox
This commit is contained in:
Girish Ramakrishnan
2020-02-13 09:09:01 -08:00
parent 35dd92f54e
commit bc31ea5eb7
3 changed files with 16 additions and 8 deletions

View File

@@ -16,12 +16,13 @@ angular.module('Application').controller('EmailsController', ['$scope', '$locati
eventLogs: [],
activeEventLog: null,
currentPage: 1,
perPage: 100,
perPage: 5,
search: '',
refresh: function () {
$scope.activity.busy = true;
Client.getMailEventLogs($scope.activity.currentPage, $scope.activity.perPage, function (error, result) {
Client.getMailEventLogs($scope.activity.search, $scope.activity.currentPage, $scope.activity.perPage, function (error, result) {
if (error) return console.error('Failed to fetch mail eventlogs.', error);
$scope.activity.busy = false;