summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-02-25 16:46:24 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-03-02 13:17:46 +0000
commit472f6faf3f09403966bd070b759000a6318f2ae7 (patch)
tree50f8c9040dd246f8f099f2ee71bb74b3c8d5a1d1 /apps/files
parent060a0101aea925dd4b8b53ac3cd9ad8b1ade23e0 (diff)
downloadnextcloud-server-472f6faf3f09403966bd070b759000a6318f2ae7.tar.gz
nextcloud-server-472f6faf3f09403966bd070b759000a6318f2ae7.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')
-rw-r--r--apps/files/src/views/TemplatePicker.vue3
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()