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
060a0101ae
commit
472f6faf3f
|
@ -213,10 +213,11 @@ export default {
|
||||||
// Run default action
|
// Run default action
|
||||||
const fileAction = OCA.Files.fileActions.getDefaultFileAction(fileInfo.mime, 'file', OC.PERMISSION_ALL)
|
const fileAction = OCA.Files.fileActions.getDefaultFileAction(fileInfo.mime, 'file', OC.PERMISSION_ALL)
|
||||||
fileAction.action(fileInfo.basename, {
|
fileAction.action(fileInfo.basename, {
|
||||||
$file: null,
|
$file: fileList?.findFileEl(this.name),
|
||||||
dir: currentDirectory,
|
dir: currentDirectory,
|
||||||
fileList,
|
fileList,
|
||||||
fileActions: fileList?.fileActions,
|
fileActions: fileList?.fileActions,
|
||||||
|
fileInfoModel: fileList?.getModelForFile(this.name),
|
||||||
})
|
})
|
||||||
|
|
||||||
this.close()
|
this.close()
|
||||||
|
|
Loading…
Reference in New Issue