diff --git a/public/site/config/routes/request-optimization-appointment.php b/public/site/config/routes/request-optimization-appointment.php index 60b5cce..0cc94c0 100644 --- a/public/site/config/routes/request-optimization-appointment.php +++ b/public/site/config/routes/request-optimization-appointment.php @@ -31,7 +31,7 @@ return [ "page" => $newProject ], "date" => (string) $formattedDate, - "text" => nl2br(esc($data->details)), + "text" => nl2br("Objet : " . $data->subject . "\n" . esc($data->details)), "author" => $user, "id" => Str::uuid(), "type" => "appointment-request", diff --git a/src/components/notifications/AppointmentRequest.vue b/src/components/notifications/AppointmentRequest.vue new file mode 100644 index 0000000..6d3e168 --- /dev/null +++ b/src/components/notifications/AppointmentRequest.vue @@ -0,0 +1,59 @@ + + + diff --git a/src/components/notifications/ProjectRequest.vue b/src/components/notifications/ProjectRequest.vue index d11d985..d0855e2 100644 --- a/src/components/notifications/ProjectRequest.vue +++ b/src/components/notifications/ProjectRequest.vue @@ -13,7 +13,10 @@ >Demande de création de projet {{ notification.project.title }} (brouillon){{ notification.project.title }} + {{ + notification.project.status === "draft" ? "(brouillon)" : "" + }}