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:
parent
f3a8b0ac88
commit
14c872a96a
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue