fix: Context Menu Dialogs Not Working (#6108)

This commit is contained in:
Michael Genson
2025-09-05 10:41:43 -05:00
committed by GitHub
parent be579ed664
commit 45e710ee72
2 changed files with 3 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
<v-menu <v-menu
offset-y offset-y
start start
:eager="isMenuContentLoaded"
:bottom="!menuTop" :bottom="!menuTop"
:nudge-bottom="!menuTop ? '5' : '0'" :nudge-bottom="!menuTop ? '5' : '0'"
:top="menuTop" :top="menuTop"

View File

@@ -191,7 +191,7 @@ const props = withDefaults(defineProps<Props>(), {
const emit = defineEmits<{ const emit = defineEmits<{
[key: string]: any; [key: string]: any;
delete: [slug: string]; deleted: [slug: string];
}>(); }>();
const api = useUserApi(); const api = useUserApi();
@@ -371,7 +371,7 @@ async function deleteRecipe() {
if (data?.slug) { if (data?.slug) {
router.push(`/g/${groupSlug.value}`); router.push(`/g/${groupSlug.value}`);
} }
emit("delete", props.slug); emit("deleted", props.slug);
} }
const download = useDownloader(); const download = useDownloader();