add eventlog refresh button
This commit is contained in:
@@ -18,7 +18,7 @@ angular.module('Application').controller('EmailsController', ['$scope', '$locati
|
||||
currentPage: 1,
|
||||
perPage: 100,
|
||||
|
||||
fetchEventLogs: function () {
|
||||
refresh: function () {
|
||||
$scope.activity.busy = true;
|
||||
|
||||
Client.getMailEventLogs($scope.activity.currentPage, $scope.activity.perPage, function (error, result) {
|
||||
@@ -32,13 +32,13 @@ angular.module('Application').controller('EmailsController', ['$scope', '$locati
|
||||
|
||||
showNextPage: function () {
|
||||
$scope.activity.currentPage++;
|
||||
$scope.activity.fetchEventLogs();
|
||||
$scope.activity.refresh();
|
||||
},
|
||||
|
||||
showPrevPage: function () {
|
||||
if ($scope.activity.currentPage > 1) $scope.activity.currentPage--;
|
||||
else $scope.activity.currentPage = 1;
|
||||
$scope.activity.fetchEventLogs();
|
||||
$scope.activity.refresh();
|
||||
},
|
||||
|
||||
showEventLogDetails: function (eventLog) {
|
||||
@@ -106,7 +106,7 @@ angular.module('Application').controller('EmailsController', ['$scope', '$locati
|
||||
$scope.domains = domains;
|
||||
$scope.ready = true;
|
||||
|
||||
$scope.activity.fetchEventLogs();
|
||||
$scope.activity.refresh();
|
||||
refreshDomainStatuses();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user