diff --git a/frontend/src/components/FileExplorer.vue b/frontend/src/components/FileExplorer.vue index c990510..481b5be 100644 --- a/frontend/src/components/FileExplorer.vue +++ b/frontend/src/components/FileExplorer.vue @@ -115,6 +115,7 @@ const rename = (doc: Doc, newName: string) => { } defineExpose({ newFolder() { + console.log("New folder") const now = Math.floor(Date.now() / 1000) editing.value = new Doc({ loc: loc.value, @@ -124,6 +125,7 @@ defineExpose({ mtime: now, size: 0, }) + store.cursor = editing.value.key }, toggleSelectAll() { console.log('Select') diff --git a/frontend/src/components/Gallery.vue b/frontend/src/components/Gallery.vue index 08c9062..b53f174 100644 --- a/frontend/src/components/Gallery.vue +++ b/frontend/src/components/Gallery.vue @@ -2,7 +2,7 @@