Skip to content
Snippets Groups Projects
Commit 95971d91 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch '873-frontend-issues-after-update-to-aleksis-core-3-1-1' into 'master'

Resolve "Frontend issues after update to AlekSIS-Core 3.1.1"

Closes #873

See merge request !1276
parents 27f9c2e8 28a82332
No related branches found
No related tags found
1 merge request!1276Resolve "Frontend issues after update to AlekSIS-Core 3.1.1"
Pipeline #134922 failed
......@@ -9,6 +9,11 @@ and this project adheres to `Semantic Versioning`_.
Unreleased
----------
Fixed
~~~~~
* Notifications were not properly shown in the frontend.
`3.1.1` - 2023-07-01
--------------------
......
......@@ -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