Merge branch 'notifications'
This commit is contained in:
commit
caf6f721fb
34 changed files with 671 additions and 417 deletions
|
|
@ -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)
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue