Skip to content
Snippets Groups Projects
Commit 8ac3f588 authored by Julian's avatar Julian
Browse files

Merge branch 'master' into manage-holidays

# Conflicts:
#	CHANGELOG.rst
parents dc34ad4a 95971d91
No related branches found
No related tags found
1 merge request!1261Manage holidays
Pipeline #134956 failed
......@@ -9,6 +9,11 @@ and this project adheres to `Semantic Versioning`_.
Unreleased
----------
Fixed
~~~~~
* Notifications were not properly shown in the frontend.
Added
~~~~~
......
......@@ -20,7 +20,7 @@
v-if="
myNotifications &&
myNotifications.person &&
myNotifications.person.notifications.length > 0
unreadNotifications.length > 0
"
>
mdi-bell-badge-outline
......@@ -38,7 +38,7 @@
v-if="
myNotifications.person &&
myNotifications.person.notifications &&
unreadNotifications.length
myNotifications.person.notifications.length
"
>
<v-subheader>{{ $t("notifications.notifications") }}</v-subheader>
......@@ -88,7 +88,9 @@ export default {
},
computed: {
unreadNotifications() {
return this.myNotifications.filter((n) => !n.read);
return this.myNotifications.person.notifications
? this.myNotifications.person.notifications.filter((n) => !n.read)
: [];
},
},
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment