aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactionsmenu.js
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2021-10-08 08:27:33 -0100
committerMaxence Lange <maxence@artificial-owl.com>2021-10-08 08:28:05 -0100
commit9e78b01f3ad3384250c76d57939f4e7a7b106a86 (patch)
tree71bda0bb93f0095f61bd6e7ab73ba6e164642da1 /apps/files/js/fileactionsmenu.js
parent9187e986e10a0e189f825cd462eb9e68bd732981 (diff)
downloadnextcloud-server-9e78b01f3ad3384250c76d57939f4e7a7b106a86.tar.gz
nextcloud-server-9e78b01f3ad3384250c76d57939f4e7a7b106a86.zip
adding action.filename to FileActions
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'apps/files/js/fileactionsmenu.js')
-rw-r--r--apps/files/js/fileactionsmenu.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files/js/fileactionsmenu.js b/apps/files/js/fileactionsmenu.js
index 53dec693c1c..c252ffa96b0 100644
--- a/apps/files/js/fileactionsmenu.js
+++ b/apps/files/js/fileactionsmenu.js
@@ -49,7 +49,8 @@
var actions = fileActions.getActions(
fileActions.getCurrentMimeType(),
fileActions.getCurrentType(),
- fileActions.getCurrentPermissions()
+ fileActions.getCurrentPermissions(),
+ fileActions.getCurrentFile()
);
var actionSpec = actions[actionName];
var fileName = this._context.$file.attr('data-file');
@@ -74,7 +75,8 @@
var actions = fileActions.getActions(
fileActions.getCurrentMimeType(),
fileActions.getCurrentType(),
- fileActions.getCurrentPermissions()
+ fileActions.getCurrentPermissions(),
+ fileActions.getCurrentFile()
);
var defaultAction = fileActions.getCurrentDefaultFileAction();