diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-02-25 16:46:24 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-03-02 10:46:48 +0100 |
commit | 14c872a96a8e2975af53f6869e0b1a3080a2b70d (patch) | |
tree | 0e24d48a805006184215b6f2decc08f0863ea200 /apps/files/src | |
parent | f3a8b0ac8850e95f3284591b547f3f424945da02 (diff) | |
download | nextcloud-server-14c872a96a8e2975af53f6869e0b1a3080a2b70d.tar.gz nextcloud-server-14c872a96a8e2975af53f6869e0b1a3080a2b70d.zip |
At least try to give the full context for the file action
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files/src')
-rw-r--r-- | apps/files/src/views/TemplatePicker.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/src/views/TemplatePicker.vue b/apps/files/src/views/TemplatePicker.vue index a1fb0f9425c..3043865816c 100644 --- a/apps/files/src/views/TemplatePicker.vue +++ b/apps/files/src/views/TemplatePicker.vue @@ -213,10 +213,11 @@ export default { // Run default action const fileAction = OCA.Files.fileActions.getDefaultFileAction(fileInfo.mime, 'file', OC.PERMISSION_ALL) fileAction.action(fileInfo.basename, { - $file: null, + $file: fileList?.findFileEl(this.name), dir: currentDirectory, fileList, fileActions: fileList?.fileActions, + fileInfoModel: fileList?.getModelForFile(this.name), }) this.close() |