diff options
author | Julius Härtl <jus@bitgrid.net> | 2023-04-27 09:06:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-27 09:06:05 +0200 |
commit | 2646fd58846ea18c62fc67fa16a1b904a1f07410 (patch) | |
tree | c1a0ffc2bd1f0149bffec8e3518706ddcbcb8444 /apps/files/js/newfilemenu.js | |
parent | 63912cc5c5abb6e15c0902b0edb1705bd3aec209 (diff) | |
parent | 966bc06e8d4a6e010116967792f26e92b0ed9678 (diff) | |
download | nextcloud-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.js | 6 |
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, |