made it work

This commit is contained in:
Henry Jameson 2026-02-13 15:18:56 +02:00
commit 496099bb00
4 changed files with 44 additions and 30 deletions

View file

@ -81,15 +81,21 @@ const Notifications = {
filteredNotifications() {
if (this.unseenAtTop) {
return [
...filteredNotificationsFromStore(this.$store).filter((n) =>
this.shouldShowUnseen(n),
),
...filteredNotificationsFromStore(this.$store).filter(
(n) => !this.shouldShowUnseen(n),
),
...filteredNotificationsFromStore(
this.$store,
useSyncConfigStore().mergedConfig.notificationVisibility,
).filter((n) => this.shouldShowUnseen(n)),
...filteredNotificationsFromStore(
this.$store,
useSyncConfigStore().mergedConfig.notificationVisibility,
).filter((n) => !this.shouldShowUnseen(n)),
]
} else {
return filteredNotificationsFromStore(this.$store, this.filterMode)
return filteredNotificationsFromStore(
this.$store,
useSyncConfigStore().mergedConfig.notificationVisibility,
this.filterMode,
)
}
},
unseenCountBadgeText() {