Give option to display last 10 cert renewal task logs

This commit is contained in:
Johannes Zellner
2023-05-02 16:55:57 +02:00
parent cf3fc940d2
commit ac602dc2a9
3 changed files with 30 additions and 5 deletions

View File

@@ -1369,6 +1369,15 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.getTasksByType = function (type, callback) {
get('/api/v1/tasks?type=' + type, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 200) return callback(new ClientError(status, data));
callback(null, data.tasks);
});
};
Client.prototype.getTask = function (taskId, callback) {
get('/api/v1/tasks/' + taskId, null, function (error, data, status) {
if (error) return callback(error);