From 14c872a96a8e2975af53f6869e0b1a3080a2b70d Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Thu, 25 Feb 2021 16:46:24 +0100 Subject: At least try to give the full context for the file action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/files/src/views/TemplatePicker.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/files/src') 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() -- cgit v1.2.3