close dialog when clicking on buttons

This commit is contained in:
Michael Genson
2026-04-07 17:12:10 +00:00
parent d3a5572049
commit 10e887b565

View File

@@ -82,6 +82,9 @@ import type { Announcement } from "~/composables/use-announcements";
const dialog = defineModel<boolean>({ default: false });
const route = useRoute();
watch(() => route.fullPath, () => { dialog.value = false; });
const { newAnnouncements, allAnnouncements, setLastRead } = useAnnouncements();
const currentAnnouncement = shallowRef<Announcement | undefined>();