create new file dialog in nav and context menu

This commit is contained in:
2025-09-06 01:29:05 +02:00
parent a4c2c039d2
commit cef77e86b7
4 changed files with 119 additions and 1 deletions

View File

@@ -198,7 +198,23 @@ export const useWarrenStore = defineStore('warrens', {
},
});
export const useCreateDirectoryDialog = defineStore('create_directory_dialog', {
export const useCreateDirectoryDialog = defineStore('create-directory-dialog', {
state: () => ({
open: false,
value: '',
}),
actions: {
openDialog() {
this.open = true;
},
reset() {
this.open = false;
this.value = '';
},
},
});
export const useCreateFileDialog = defineStore('create-file-dialog', {
state: () => ({
open: false,
value: '',