create new file dialog in nav and context menu
This commit is contained in:
@@ -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: '',
|
||||
|
||||
Reference in New Issue
Block a user