notifications fixed

This commit is contained in:
Simon Pocrnjič
2025-11-04 20:12:38 +01:00
parent 5f879c9436
commit ad8e0d5cee
5 changed files with 45 additions and 20 deletions
+8 -5
View File
@@ -67,11 +67,14 @@ watch(selectedClient, (val) => {
});
});
async function markRead(id) {
try {
await window.axios.post(route("notifications.activity.read"), { activity_id: id });
router.reload({ only: ["activities"] });
} catch (e) {}
function markRead(id) {
router.patch(route("notifications.activity.read"),
{ activity_id: id },
{
only: ["activities"],
preserveScroll: true
}
);
}
</script>