From cec498605f110bc4ea0bcb98a12438518207c556 Mon Sep 17 00:00:00 2001 From: Simon L Date: Tue, 15 Aug 2023 16:00:19 +0200 Subject: adjust add button Signed-off-by: Simon L Signed-off-by: nextcloud-command --- apps/files/js/filelist.js | 3 ++- apps/files/js/templates.js | 8 +++++--- apps/files/js/templates/template_addbutton.handlebars | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) (limited to 'apps/files/js') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index a3c868789fc..cfc21e909c0 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -3846,7 +3846,8 @@ return; } var $newButton = $(OCA.Files.Templates['template_addbutton']({ - addText: t('files', 'New file/folder menu'), + addText: t('files', 'New'), + addLongText: t('files', 'New file/folder menu'), iconClass: 'icon-add', })); diff --git a/apps/files/js/templates.js b/apps/files/js/templates.js index 315f697728e..3b0aec46ccb 100644 --- a/apps/files/js/templates.js +++ b/apps/files/js/templates.js @@ -419,10 +419,12 @@ templates['template_addbutton'] = template({"compiler":[8,">= 4.3.0"],"main":fun return undefined }; - return "\n \n \n " - + alias4(((helper = (helper = lookupProperty(helpers,"addText") || (depth0 != null ? lookupProperty(depth0,"addText") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"addText","hash":{},"data":data,"loc":{"start":{"line":3,"column":31},"end":{"line":3,"column":42}}}) : helper))) + + "\">\n " + + alias4(((helper = (helper = lookupProperty(helpers,"addText") || (depth0 != null ? lookupProperty(depth0,"addText") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"addText","hash":{},"data":data,"loc":{"start":{"line":3,"column":7},"end":{"line":3,"column":18}}}) : helper))) + "\n\n"; },"useData":true}); })(); \ No newline at end of file diff --git a/apps/files/js/templates/template_addbutton.handlebars b/apps/files/js/templates/template_addbutton.handlebars index 62a022715a9..478465d93aa 100644 --- a/apps/files/js/templates/template_addbutton.handlebars +++ b/apps/files/js/templates/template_addbutton.handlebars @@ -1,4 +1,4 @@ - + - {{addText}} + {{addText}} -- cgit v1.2.3