#67 - fix menu project notification
This commit is contained in:
parent
2117e91969
commit
d17a424e62
1 changed files with 4 additions and 1 deletions
|
|
@ -163,7 +163,10 @@ function isCurrent(navItem) {
|
||||||
function hasUnreadNotification(project) {
|
function hasUnreadNotification(project) {
|
||||||
if (!user.value) return false;
|
if (!user.value) return false;
|
||||||
return user.value.notifications.some((notification) => {
|
return user.value.notifications.some((notification) => {
|
||||||
return project.uri.includes(notification.location.project.uri);
|
return (
|
||||||
|
notification.isRead != true &&
|
||||||
|
project.uri.includes(notification.location.project.uri)
|
||||||
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue