aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-04-26 19:46:13 -0700
committernextcloud-command <nextcloud-command@users.noreply.github.com>2023-04-27 03:20:12 +0000
commit966bc06e8d4a6e010116967792f26e92b0ed9678 (patch)
treec1a0ffc2bd1f0149bffec8e3518706ddcbcb8444 /apps/files/src
parent63912cc5c5abb6e15c0902b0edb1705bd3aec209 (diff)
downloadnextcloud-server-966bc06e8d4a6e010116967792f26e92b0ed9678.tar.gz
nextcloud-server-966bc06e8d4a6e010116967792f26e92b0ed9678.zip
Create new file/folder labels
Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/files/src')
-rw-r--r--apps/files/src/templates.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/src/templates.js b/apps/files/src/templates.js
index 3a4f0133f94..9be12d8608f 100644
--- a/apps/files/src/templates.js
+++ b/apps/files/src/templates.js
@@ -80,6 +80,7 @@ window.addEventListener('DOMContentLoaded', function() {
templateName: t('files', 'Templates'),
iconClass: 'icon-template-add',
fileType: 'file',
+ actionLabel: t('files', 'Create new templates folder'),
actionHandler(name) {
initTemplatesFolder(name)
menu.removeMenuEntry('template-init')
@@ -109,6 +110,7 @@ templates.forEach((provider, index) => {
templateName: provider.label + provider.extension,
iconClass: provider.iconClass || 'icon-file',
fileType: 'file',
+ actionLabel: provider.actionLabel,
actionHandler(name) {
TemplatePicker.open(name, provider)
},