aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/newfilemenu.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js/newfilemenu.js')
-rw-r--r--apps/files/js/newfilemenu.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/js/newfilemenu.js b/apps/files/js/newfilemenu.js
index a101eccef29..ce23b4a9c58 100644
--- a/apps/files/js/newfilemenu.js
+++ b/apps/files/js/newfilemenu.js
@@ -51,6 +51,7 @@
templateName: t('files', 'New folder'),
iconClass: 'icon-folder',
fileType: 'folder',
+ actionLabel: t('files', 'Create new folder'),
actionHandler: function(name) {
self.fileList.createDirectory(name);
}
@@ -112,10 +113,12 @@
var newName = $target.attr('data-templatename');
var fileType = $target.attr('data-filetype');
+ var actionLabel = $target.attr('data-action-label');
var $form = $(OCA.Files.Templates['newfilemenu_filename_form']({
fileName: newName,
cid: this.cid,
- fileType: fileType
+ fileType: fileType,
+ actionLabel,
}));
//this.trigger('actionPerformed', action);
@@ -207,6 +210,7 @@
iconClass: actionSpec.iconClass,
fileType: actionSpec.fileType,
useInput: actionSpec.useInput,
+ actionLabel: actionSpec.actionLabel,
actionHandler: actionSpec.actionHandler,
checkFilename: actionSpec.checkFilename,
shouldShow: actionSpec.shouldShow,