diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/src/actions/openInFilesAction.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/src/actions/openInFilesAction.ts b/apps/files_sharing/src/actions/openInFilesAction.ts index 6909ee143c0..863b24681ce 100644 --- a/apps/files_sharing/src/actions/openInFilesAction.ts +++ b/apps/files_sharing/src/actions/openInFilesAction.ts @@ -21,7 +21,7 @@ */ import type { Node } from '@nextcloud/files' -import { registerFileAction, FileAction, DefaultType } from '@nextcloud/files' +import { registerFileAction, FileAction, DefaultType, FileType } from '@nextcloud/files' import { translate as t } from '@nextcloud/l10n' import { sharesViewId, sharedWithYouViewId, sharedWithOthersViewId, sharingByLinksViewId } from '../views/shares' @@ -41,6 +41,8 @@ export const action = new FileAction({ ].includes(view.id), async exec(node: Node) { + const isFolder = node.type === FileType.Folder + window.OCP.Files.Router.goToRoute( null, // use default route { view: 'files', fileid: node.fileid }, |