create new file dialog in nav and context menu
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
const warrenStore = useWarrenStore();
|
||||
const copyStore = useCopyStore();
|
||||
const createDirectoryDialog = useCreateDirectoryDialog();
|
||||
const createFileDialog = useCreateFileDialog();
|
||||
|
||||
const pasting = ref<boolean>(false);
|
||||
const validPaste = computed(
|
||||
@@ -51,6 +52,10 @@ async function onPaste() {
|
||||
<Icon name="lucide:clipboard-paste" />
|
||||
Paste
|
||||
</ContextMenuItem>
|
||||
<ContextMenuItem @select="createFileDialog.openDialog">
|
||||
<Icon name="lucide:file-plus" />
|
||||
Create file
|
||||
</ContextMenuItem>
|
||||
<ContextMenuItem @select="createDirectoryDialog.openDialog">
|
||||
<Icon name="lucide:folder-plus" />
|
||||
Create directory
|
||||
|
||||
Reference in New Issue
Block a user