diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-05-30 23:09:04 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-06-08 15:58:45 +0200 |
commit | 423c93087e7ac5e7c97952d7a919153d619a210c (patch) | |
tree | 1cd7e64f4409e77ac1ceb6138692210d6ea8c132 /apps/files/src/actions | |
parent | 13d9a1007b40310b4e6cd3abec892dbf266c602d (diff) | |
download | nextcloud-server-423c93087e7ac5e7c97952d7a919153d619a210c.tar.gz nextcloud-server-423c93087e7ac5e7c97952d7a919153d619a210c.zip |
fix(files): `open-in-files` action should also set `openfile` query
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files/src/actions')
-rw-r--r-- | apps/files/src/actions/openInFilesAction.spec.ts | 4 | ||||
-rw-r--r-- | apps/files/src/actions/openInFilesAction.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/src/actions/openInFilesAction.spec.ts b/apps/files/src/actions/openInFilesAction.spec.ts index e02f08af900..f8745174b96 100644 --- a/apps/files/src/actions/openInFilesAction.spec.ts +++ b/apps/files/src/actions/openInFilesAction.spec.ts @@ -59,7 +59,7 @@ describe('Open in files action execute tests', () => { // Silent action expect(exec).toBe(null) expect(goToRouteMock).toBeCalledTimes(1) - expect(goToRouteMock).toBeCalledWith(null, { fileid: 1, view: 'files' }, { dir: '/Foo' }) + expect(goToRouteMock).toBeCalledWith(null, { fileid: 1, view: 'files' }, { dir: '/Foo', openfile: 'true' }) }) test('Open in files with folder', async () => { @@ -79,6 +79,6 @@ describe('Open in files action execute tests', () => { // Silent action expect(exec).toBe(null) expect(goToRouteMock).toBeCalledTimes(1) - expect(goToRouteMock).toBeCalledWith(null, { fileid: 1, view: 'files' }, { dir: '/Foo/Bar' }) + expect(goToRouteMock).toBeCalledWith(null, { fileid: 1, view: 'files' }, { dir: '/Foo/Bar', openfile: 'true' }) }) }) diff --git a/apps/files/src/actions/openInFilesAction.ts b/apps/files/src/actions/openInFilesAction.ts index c9fc4362ff0..0022d8c5e76 100644 --- a/apps/files/src/actions/openInFilesAction.ts +++ b/apps/files/src/actions/openInFilesAction.ts @@ -25,7 +25,7 @@ export const action = new FileAction({ window.OCP.Files.Router.goToRoute( null, // use default route { view: 'files', fileid: node.fileid }, - { dir }, + { dir, openfile: 'true' }, ) return null }, |