mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-09 22:45:36 -04:00
fix watchers
This commit is contained in:
@@ -33,7 +33,7 @@ const { newAnnouncements, allAnnouncements } = useAnnouncements();
|
||||
|
||||
const currentAnnouncement = shallowRef(newAnnouncements.value.at(0) || allAnnouncements.at(-1)!);
|
||||
watch(
|
||||
() => dialog,
|
||||
dialog,
|
||||
() => {
|
||||
// Once the dialog is opened, mark the current announcement as read
|
||||
if (dialog.value) {
|
||||
|
||||
@@ -55,7 +55,7 @@ export function useAnnouncements() {
|
||||
}
|
||||
|
||||
refreshUnreadAnnouncements();
|
||||
watch(() => auth.user, () => {
|
||||
watch(auth.user, () => {
|
||||
refreshUnreadAnnouncements();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user