mark all notification as read

This commit is contained in:
aynsix
2022-02-10 17:23:01 +03:00
parent 974fbf9164
commit 10ef15964f
13 changed files with 104 additions and 6 deletions

View File

@@ -209,6 +209,20 @@ const notifyLayout = (services) => {
}
}
});
$notificationDialog.on('click', '.mark-all-read', function(event) {
event.preventDefault();
$.ajax({
type: 'POST',
url: '/user/notifications/read-all/',
success: function (data) {
if (data.success == true) {
print_notifications(0);
}
}
});
});
};
const markNotificationRead = (notification_id, $notification) => {