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:
@ -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');
|
||||
}
|
||||
|
Reference in New Issue
Block a user