read notification fully working (content, comment and reply)

This commit is contained in:
isUnknown 2024-12-19 11:11:43 +01:00
parent 51409bd090
commit cce158e80a
6 changed files with 10 additions and 10 deletions

View file

@ -117,7 +117,7 @@ const { page } = storeToRefs(usePageStore());
const unreadNotificationsCount = computed(() => {
if (!user.value) return undefined;
const count = user.value.notifications.filter(
(notification) => notification.isread
(notification) => notification.isread != "true"
).length;
if (count === 0) return undefined;
return count;
@ -164,7 +164,7 @@ function hasUnreadNotification(project) {
if (!user.value) return false;
return user.value.notifications.some((notification) => {
return (
notification.isread != true &&
notification.isread != "true" &&
project.uri.includes(notification.location.project.uri)
);
});