Skip to content

Commit cd4b07d

Browse files
susnuxnextcloud-command
authored andcommitted
chore: Compile assets
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent 5aa6a02 commit cd4b07d

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

apps/files_sharing/src/actions/openInFilesAction.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,16 @@ export const action = new FileAction({
4545

4646
window.OCP.Files.Router.goToRoute(
4747
null, // use default route
48-
{ view: 'files', fileid: node.fileid },
49-
{ dir: node.dirname, openfile: 'true' },
48+
{
49+
view: 'files',
50+
fileid: String(node.fileid),
51+
},
52+
{
53+
// If this node is a folder open the folder in files
54+
dir: isFolder ? node.path : node.dirname,
55+
// otherwise if this is a file, we should open it
56+
openfile: isFolder ? undefined : 'true',
57+
},
5058
)
5159
return null
5260
},

0 commit comments

Comments
 (0)