Skip to content

Commit

Permalink
fix(notifications): update overview when changing general settings
Browse files Browse the repository at this point in the history
See: BEDS-593
  • Loading branch information
marcel-bitfly committed Oct 17, 2024
1 parent d55ea52 commit ca58e6a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,14 @@ const textMutedUntil = computed(() => {
),
})
})
const {
refreshOverview,
} = useNotificationsDashboardOverviewStore()
watchDebounced(() => notificationsManagementStore.settings.general_settings, async () => {
await notificationsManagementStore.saveSettings()
// this is a quickfix and should not be needed,
// reactive data should be updated automatically and `user actions` should be atomic -> error handling
await refreshOverview()
}, {
deep: true,
})
Expand Down

0 comments on commit ca58e6a

Please sign in to comment.