mail queue: add actions

This commit is contained in:
Girish Ramakrishnan
2022-09-20 11:16:33 +02:00
parent d3fee6f35b
commit 92f8f9e8e5
6 changed files with 42 additions and 43 deletions
+14
View File
@@ -37,6 +37,20 @@ angular.module('Application').controller('EmailsQueueController', ['$scope', '$l
});
},
resend: function (item) {
Client.resendMailQueueItem(item.file, function (error) {
if (error) return console.error('Failed to retry item.', error);
$scope.queue.refresh();
});
},
discard: function (item) {
Client.delMailQueueItem(item.file, function (error) {
if (error) return console.error('Failed to discard item.', error);
$scope.queue.refresh();
});
},
showNextPage: function () {
$scope.queue.currentPage++;
$scope.queue.refresh();