aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-07-25 13:09:45 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-08-02 18:53:24 +0200
commitfdd1e39ffdf5c28ee71a9eca2b22b096bfac599a (patch)
treec72a3bfb4e8c583bd48ab1e111248c501808a075 /apps
parentaa39239c574001ac05a775aa648e6209e63cc577 (diff)
downloadnextcloud-server-fdd1e39ffdf5c28ee71a9eca2b22b096bfac599a.tar.gz
nextcloud-server-fdd1e39ffdf5c28ee71a9eca2b22b096bfac599a.zip
chore: Compile assets
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/src/actions/openInFilesAction.ts12
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/files_sharing/src/actions/openInFilesAction.ts b/apps/files_sharing/src/actions/openInFilesAction.ts
index 863b24681ce..f01b62c81ee 100644
--- a/apps/files_sharing/src/actions/openInFilesAction.ts
+++ b/apps/files_sharing/src/actions/openInFilesAction.ts
@@ -45,8 +45,16 @@ export const action = new FileAction({
window.OCP.Files.Router.goToRoute(
null, // use default route
- { view: 'files', fileid: node.fileid },
- { dir: node.dirname, openfile: 'true' },
+ {
+ view: 'files',
+ fileid: String(node.fileid),
+ },
+ {
+ // If this node is a folder open the folder in files
+ dir: isFolder ? node.path : node.dirname,
+ // otherwise if this is a file, we should open it
+ openfile: isFolder ? undefined : 'true',
+ },
)
return null
},