mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-11 07:25:42 -04:00
close dialog when clicking on buttons
This commit is contained in:
@@ -82,6 +82,9 @@ import type { Announcement } from "~/composables/use-announcements";
|
|||||||
|
|
||||||
const dialog = defineModel<boolean>({ default: false });
|
const dialog = defineModel<boolean>({ default: false });
|
||||||
|
|
||||||
|
const route = useRoute();
|
||||||
|
watch(() => route.fullPath, () => { dialog.value = false; });
|
||||||
|
|
||||||
const { newAnnouncements, allAnnouncements, setLastRead } = useAnnouncements();
|
const { newAnnouncements, allAnnouncements, setLastRead } = useAnnouncements();
|
||||||
|
|
||||||
const currentAnnouncement = shallowRef<Announcement | undefined>();
|
const currentAnnouncement = shallowRef<Announcement | undefined>();
|
||||||
|
|||||||
Reference in New Issue
Block a user