From 2bc66af55d8304d08634a3ba2aa67b9cddfdf315 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Mon, 7 Jan 2019 18:04:52 +0100 Subject: [PATCH] Add notification ack api wrapper --- src/js/client.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/js/client.js b/src/js/client.js index 2f77f0a51..ee906df74 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -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: {