From 7038185e7f425f2ae9cf549e92d25e8bcbbd6a98 Mon Sep 17 00:00:00 2001 From: isUnknown Date: Thu, 23 Jan 2025 16:30:17 +0100 Subject: [PATCH] read project creation request notification working --- public/site/plugins/notifications/routes/read.php | 3 ++- src/components/notifications/ProjectRequest.vue | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/public/site/plugins/notifications/routes/read.php b/public/site/plugins/notifications/routes/read.php index 430c0dd..1984647 100644 --- a/public/site/plugins/notifications/routes/read.php +++ b/public/site/plugins/notifications/routes/read.php @@ -8,7 +8,8 @@ return [ $data = json_decode($json); try { - $project = page($data->projectId); + $project = page("projects")->findPageOrDraft($data->projectId); + $project->readNotification($data->notificationId); return json_encode([ "status" => "success" diff --git a/src/components/notifications/ProjectRequest.vue b/src/components/notifications/ProjectRequest.vue index 93bb3aa..d11d985 100644 --- a/src/components/notifications/ProjectRequest.vue +++ b/src/components/notifications/ProjectRequest.vue @@ -1,5 +1,6 @@