diff --git a/InvenTree/templates/InvenTree/notifications/notifications.html b/InvenTree/templates/InvenTree/notifications/notifications.html index 4b34f8f30b..ee1f150ae9 100644 --- a/InvenTree/templates/InvenTree/notifications/notifications.html +++ b/InvenTree/templates/InvenTree/notifications/notifications.html @@ -29,7 +29,7 @@ function updateNotificationTables() { // this allows the global notification panel to update the tables window.updateNotifications = updateNotificationTables -function loadNotificationTable(table, options={}) { +function loadNotificationTable(table, options={}, enableDelete=false) { var params = options.params || {}; var read = typeof(params.read) === 'undefined' ? true : params.read; @@ -90,7 +90,11 @@ function loadNotificationTable(table, options={}) { { formatter: function(value, row, index, field) { var bRead = getReadEditButton(row.pk, row.read) - var bDel = ""; + if (enableDelete) { + var bDel = ""; + } else { + var bDel = ''; + } var html = "
" + bRead + bDel + "
"; return html; } @@ -121,7 +125,7 @@ loadNotificationTable("#history-table", { name: 'history', url: '{% url 'api-notifications-list' %}', no_matches: function() { return '{% trans "No notification history found" %}'; }, -}); +}, true); $("#history-refresh").on('click', function() { $("#history-table").bootstrapTable('refresh');