fix notifications counter not taking into account unseen setting
This commit is contained in:
parent
bf42865016
commit
a50ea7f278
3 changed files with 3 additions and 0 deletions
|
|
@ -79,6 +79,7 @@ const Notifications = {
|
|||
return unseenNotificationsFromStore(
|
||||
this.$store,
|
||||
useMergedConfigStore().mergedConfig.notificationVisibility,
|
||||
useMergedConfigStore().mergedConfig.ignoreInactionableSeen,
|
||||
)
|
||||
},
|
||||
filteredNotifications() {
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ const SideDrawer = {
|
|||
return unseenNotificationsFromStore(
|
||||
this.$store,
|
||||
useMergedConfigStore().mergedConfig.notificationVisibility,
|
||||
useMergedConfigStore().mergedConfig.ignoreInactionableSeen,
|
||||
)
|
||||
},
|
||||
unseenNotificationsCount() {
|
||||
|
|
|
|||
|
|
@ -113,6 +113,7 @@ export const unseenNotificationsFromStore = (
|
|||
) => {
|
||||
return filteredNotificationsFromStore(store, notificationVisibility).filter(
|
||||
({ seen, type }) => {
|
||||
console.log(ignoreInactionableSeen)
|
||||
if (!ignoreInactionableSeen) return !seen
|
||||
if (seen) return false
|
||||
return ACTIONABLE_NOTIFICATION_TYPES.has(type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue