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(
|
return unseenNotificationsFromStore(
|
||||||
this.$store,
|
this.$store,
|
||||||
useMergedConfigStore().mergedConfig.notificationVisibility,
|
useMergedConfigStore().mergedConfig.notificationVisibility,
|
||||||
|
useMergedConfigStore().mergedConfig.ignoreInactionableSeen,
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
filteredNotifications() {
|
filteredNotifications() {
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,7 @@ const SideDrawer = {
|
||||||
return unseenNotificationsFromStore(
|
return unseenNotificationsFromStore(
|
||||||
this.$store,
|
this.$store,
|
||||||
useMergedConfigStore().mergedConfig.notificationVisibility,
|
useMergedConfigStore().mergedConfig.notificationVisibility,
|
||||||
|
useMergedConfigStore().mergedConfig.ignoreInactionableSeen,
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
unseenNotificationsCount() {
|
unseenNotificationsCount() {
|
||||||
|
|
|
||||||
|
|
@ -113,6 +113,7 @@ export const unseenNotificationsFromStore = (
|
||||||
) => {
|
) => {
|
||||||
return filteredNotificationsFromStore(store, notificationVisibility).filter(
|
return filteredNotificationsFromStore(store, notificationVisibility).filter(
|
||||||
({ seen, type }) => {
|
({ seen, type }) => {
|
||||||
|
console.log(ignoreInactionableSeen)
|
||||||
if (!ignoreInactionableSeen) return !seen
|
if (!ignoreInactionableSeen) return !seen
|
||||||
if (seen) return false
|
if (seen) return false
|
||||||
return ACTIONABLE_NOTIFICATION_TYPES.has(type)
|
return ACTIONABLE_NOTIFICATION_TYPES.has(type)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue