diff --git a/public/content/projects/1_miss-dior-blooming-bouquet/1_client-brief/38969543_extrait-de-louis-sullivan-form-follow-function.-de-la-tour-de-bureaux-artistiquement-consideree.pdf.txt b/public/content/projects/1_miss-dior-blooming-bouquet/1_client-brief/38969543_extrait-de-louis-sullivan-form-follow-function.-de-la-tour-de-bureaux-artistiquement-consideree.pdf.txt index 3460644..3054ff7 100644 --- a/public/content/projects/1_miss-dior-blooming-bouquet/1_client-brief/38969543_extrait-de-louis-sullivan-form-follow-function.-de-la-tour-de-bureaux-artistiquement-consideree.pdf.txt +++ b/public/content/projects/1_miss-dior-blooming-bouquet/1_client-brief/38969543_extrait-de-louis-sullivan-form-follow-function.-de-la-tour-de-bureaux-artistiquement-consideree.pdf.txt @@ -13,8 +13,19 @@ Template: document Comments: 1: - m2lyhnf7: - text: nouveau com + m2lyrs06: + text: nouveau commentaire username: Adrien Payet - date: 2024-10-23T16:14:54+02:00 - id: m2lyhnf7 \ No newline at end of file + date: 2024-10-23T16:22:47+02:00 + id: m2lyrs06 +2: + m2lys1bs: + text: test + username: Adrien Payet + date: 2024-10-23T16:22:59+02:00 + id: m2lys1bs + m2lys8xu: + text: 2e com page 2 + username: Adrien Payet + date: 2024-10-23T16:23:09+02:00 + id: m2lys8xu \ No newline at end of file diff --git a/src/components/comments/Comments.vue b/src/components/comments/Comments.vue index d77c8ae..f9f5bfc 100644 --- a/src/components/comments/Comments.vue +++ b/src/components/comments/Comments.vue @@ -133,9 +133,13 @@ function closeAddField() { } function setStatus(comment) { - if (user?.notifications?.comments.hasOwnProperty(comment.id)) { - return "unread"; - } else { + try { + if (user?.notifications?.comments.hasOwnProperty(comment.id)) { + return "unread"; + } else { + return undefined; + } + } catch (error) { return undefined; } } diff --git a/src/components/project/client-brief/PdfViewer.vue b/src/components/project/client-brief/PdfViewer.vue index bf0b289..2117dfe 100644 --- a/src/components/project/client-brief/PdfViewer.vue +++ b/src/components/project/client-brief/PdfViewer.vue @@ -5,7 +5,8 @@ modal :draggable="false" header="Titre du PDF" - class="w-full | text-grey-800 | rounded-2xl | overflow-hidden | with-comments" + class="w-full | text-grey-800 | rounded-2xl | overflow-hidden" + :class="{ 'with-comments': isCommentsOpen }" :closeOnEscape="true" >