Give option to display last 10 cert renewal task logs
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user