From 369dc3ecafc41fc1b6828cdc52ab565225a1a0e6 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Tue, 21 Nov 2023 15:49:33 +0000 Subject: [PATCH] Fixed New Folder, added Rename to Gallery --- frontend/src/components/FileExplorer.vue | 2 ++ frontend/src/components/Gallery.vue | 3 ++- frontend/src/components/GalleryFigure.vue | 2 +- frontend/src/components/HeaderMain.vue | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) 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 @@