diff options
author | Simon L <szaimen@e.mail.de> | 2023-08-15 16:00:19 +0200 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2023-08-15 14:38:54 +0000 |
commit | cec498605f110bc4ea0bcb98a12438518207c556 (patch) | |
tree | efa003167f373ba33915244a27534826ca8a11eb /apps/files/js | |
parent | 89f66a5a4b7e384de3610afba8beea05a16e4f8f (diff) | |
download | nextcloud-server-cec498605f110bc4ea0bcb98a12438518207c556.tar.gz nextcloud-server-cec498605f110bc4ea0bcb98a12438518207c556.zip |
adjust add button
Signed-off-by: Simon L <szaimen@e.mail.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 3 | ||||
-rw-r--r-- | apps/files/js/templates.js | 8 | ||||
-rw-r--r-- | apps/files/js/templates/template_addbutton.handlebars | 4 |
3 files changed, 9 insertions, 6 deletions
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 "<a href=\"#\" class=\"button new\">\n <span class=\"icon " + return "<a href=\"#\" class=\"button new\" aria-label=\"" + + alias4(((helper = (helper = lookupProperty(helpers,"addLongText") || (depth0 != null ? lookupProperty(depth0,"addLongText") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"addLongText","hash":{},"data":data,"loc":{"start":{"line":1,"column":43},"end":{"line":1,"column":58}}}) : helper))) + + "\">\n <span class=\"icon " + alias4(((helper = (helper = lookupProperty(helpers,"iconClass") || (depth0 != null ? lookupProperty(depth0,"iconClass") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"iconClass","hash":{},"data":data,"loc":{"start":{"line":2,"column":19},"end":{"line":2,"column":32}}}) : helper))) - + "\"></span>\n <span class=\"hidden-visually\">" - + 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))) + + "\"></span>\n <span>" + + 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))) + "</span>\n</a>\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 @@ -<a href="#" class="button new"> +<a href="#" class="button new" aria-label="{{addLongText}}"> <span class="icon {{iconClass}}"></span> - <span class="hidden-visually">{{addText}}</span> + <span>{{addText}}</span> </a> |