mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-14 17:05:40 -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)!);
|
const currentAnnouncement = shallowRef(newAnnouncements.value.at(0) || allAnnouncements.at(-1)!);
|
||||||
watch(
|
watch(
|
||||||
() => dialog,
|
dialog,
|
||||||
() => {
|
() => {
|
||||||
// Once the dialog is opened, mark the current announcement as read
|
// Once the dialog is opened, mark the current announcement as read
|
||||||
if (dialog.value) {
|
if (dialog.value) {
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ export function useAnnouncements() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
refreshUnreadAnnouncements();
|
refreshUnreadAnnouncements();
|
||||||
watch(() => auth.user, () => {
|
watch(auth.user, () => {
|
||||||
refreshUnreadAnnouncements();
|
refreshUnreadAnnouncements();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user