Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate committed Nov 7, 2024
2 parents 81da786 + a81672f commit c443706
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/store/gui/notifications/getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,17 @@ export const getters: GetterTree<GuiNotificationState, any> = {
}
})

return notifications
// get all dismissed tmcwarnings and convert it to a string[]
const tmcwarningsDismisses = getters['getDismissByCategory']('tmcwarning').map(
(dismiss: GuiNotificationStateDismissEntry) => {
return `tmcwarning/${dismiss.id}`
}
)

// return filtered tmcwarnings
return notifications.filter((entry) => {
return !tmcwarningsDismisses.includes(entry.id)
})
},

getDismiss: (state, getters, rootState) => {
Expand Down

0 comments on commit c443706

Please sign in to comment.