From 6214fe77248a6e83905f7a6a645b12e8d711a96e Mon Sep 17 00:00:00 2001 From: John Molakvoæ Date: Fri, 11 Aug 2023 19:55:36 +0200 Subject: fix(files): active and open sidebar on mount MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- apps/files/src/actions/openFolderAction.ts | 4 +-- apps/files/src/components/FileEntry.vue | 48 ++++++++++++++++++-------- apps/files/src/components/FilesListVirtual.vue | 21 +++++++++-- apps/files/src/components/VirtualList.vue | 14 +++++--- 4 files changed, 64 insertions(+), 23 deletions(-) diff --git a/apps/files/src/actions/openFolderAction.ts b/apps/files/src/actions/openFolderAction.ts index ccb3f1a43ea..9e832515976 100644 --- a/apps/files/src/actions/openFolderAction.ts +++ b/apps/files/src/actions/openFolderAction.ts @@ -59,8 +59,8 @@ export const action = new FileAction({ window.OCP.Files.Router.goToRoute( null, - null, - { dir: join(dir, node.basename) }, + { fileid: undefined }, + { dir: join(dir, node.basename), fileid: undefined }, ) return null }, diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue index e3feda819b8..d189c83e63a 100644 --- a/apps/files/src/components/FileEntry.vue +++ b/apps/files/src/components/FileEntry.vue @@ -21,11 +21,15 @@ -->