process error

This commit is contained in:
isUnknown 2024-10-23 16:29:41 +02:00
parent 65a2bbaa8d
commit a00d9cbff1
3 changed files with 24 additions and 8 deletions

View file

@ -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;
}
}

View file

@ -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"
>
<template #header>