notifications fixed
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user