2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

add endpoint + buttons to mark a notification read

This commit is contained in:
Matthias
2021-11-29 01:08:06 +01:00
parent f9655f5eac
commit 06f6587050
3 changed files with 46 additions and 3 deletions

View File

@ -91,9 +91,10 @@ function loadNotificationTable(table, options={}) {
});
$(table).on('click', '.notification-read', function() {
var url = "/notifications/" + $(this).attr('pk') + "/";
var url = "/api/notifications/" + $(this).attr('pk') + "/read/";
inventreeDelete(url, {
inventreePut(url, {}, {
method: 'POST',
success: function() {
$(table).bootstrapTable('refresh');
}