add eventlog refresh button
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
<br/>
|
||||
|
||||
<div class="text-left">
|
||||
<h3>Event Log</h3>
|
||||
<h3>Event Log <button class="btn btn-sm btn-primary btn-outline pull-right" ng-click="activity.refresh()" ng-disabled="activity.busy"><i class="fa fa-sync"></i></button></h3>
|
||||
</div>
|
||||
|
||||
<div class="card" style="margin-bottom: 15px;">
|
||||
|
||||
@@ -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