At least try to give the full context for the file action

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2021-02-25 16:46:24 +01:00 committed by backportbot[bot]
parent 060a0101ae
commit 472f6faf3f
1 changed files with 2 additions and 1 deletions

View File

@ -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()