diff --git a/public/site/plugins/comments/routes/create.php b/public/site/plugins/comments/routes/create.php index c2f67b7..9db31cf 100644 --- a/public/site/plugins/comments/routes/create.php +++ b/public/site/plugins/comments/routes/create.php @@ -20,7 +20,13 @@ return [ $comments = $file->comments()->isEmpty() == true ? [] : Yaml::decode($file->comments()->value()); foreach ($comments as $existingComment) { - if ($existingComment['author']['email'] === $user->email() && $existingComment['text'] === $data->text) { + if + ( + $existingComment['author']['email'] == $user->email() && + $existingComment['text'] == $data->text && + $existingComment['position']['x'] == $data->position->x && + $existingComment['position']['y'] == $data->position->y + ) { return json_encode(null); } } diff --git a/public/site/templates/project.json.php b/public/site/templates/project.json.php index ff7439d..a099586 100644 --- a/public/site/templates/project.json.php +++ b/public/site/templates/project.json.php @@ -11,6 +11,7 @@ $project = [ 'steps' => $page->getSteps(), 'designToLight' => $page->isDTLEnabled()->isTrue() ? processDTLProposals($page) : null, 'hasOptimizationRequest' => $page->hasOptimizationRequest()->isTrue(), + 'notifications' => $page->notifications()->yaml(), ]; $pageData = array_merge($genericData, $project); diff --git a/src/components/project/ProjectStep.vue b/src/components/project/ProjectStep.vue index 13e5b15..f9718bb 100644 --- a/src/components/project/ProjectStep.vue +++ b/src/components/project/ProjectStep.vue @@ -7,23 +7,28 @@

{{ step.label }}

-
+