directory list context menu

This commit is contained in:
2025-07-15 16:20:47 +02:00
parent 5631158b72
commit 672cfbee11
7 changed files with 64 additions and 12 deletions

View File

@@ -11,9 +11,9 @@ import {
import { createDirectory } from '~/lib/api/warrens';
const warrenRoute = useWarrenRoute();
const dialog = useCreateDirectoryDialog();
const creating = ref(false);
const open = ref(false);
const directoryName = ref('');
async function submit() {
@@ -28,13 +28,13 @@ async function submit() {
if (success) {
directoryName.value = '';
open.value = false;
dialog.open = false;
}
}
</script>
<template>
<Dialog v-model:open="open">
<Dialog v-model:open="dialog.open">
<DialogTrigger as-child>
<slot />
</DialogTrigger>