aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/newfilemenu.js
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-04-27 09:06:05 +0200
committerGitHub <noreply@github.com>2023-04-27 09:06:05 +0200
commit2646fd58846ea18c62fc67fa16a1b904a1f07410 (patch)
treec1a0ffc2bd1f0149bffec8e3518706ddcbcb8444 /apps/files/js/newfilemenu.js
parent63912cc5c5abb6e15c0902b0edb1705bd3aec209 (diff)
parent966bc06e8d4a6e010116967792f26e92b0ed9678 (diff)
downloadnextcloud-server-2646fd58846ea18c62fc67fa16a1b904a1f07410.tar.gz
nextcloud-server-2646fd58846ea18c62fc67fa16a1b904a1f07410.zip
Merge pull request #37929 from nextcloud/enh/a11y-create-new-label
Create new file/folder labels
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,