Add notification ack api wrapper

This commit is contained in:
Johannes Zellner
2019-01-07 18:04:52 +01:00
parent db5892d0ae
commit 2bc66af55d

View File

@@ -739,6 +739,15 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
});
};
Client.prototype.ackNotification = function (notificationId, callback) {
post('/api/v1/notifications/' + notificationId, {}, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 204) return callback(new ClientError(status));
callback(null);
});
};
Client.prototype.getEventLogs = function (actions, search, page, perPage, callback) {
var config = {
params: {