From 3e1fd602eb0000b2ad3106b53ed58d4ca35a71da Mon Sep 17 00:00:00 2001 From: =?utf8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Wed, 14 Aug 2019 18:27:12 +0200 Subject: [PATCH] Rename delete label to Delete folder/file MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- apps/files/js/fileactions.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index 026b1044d3c..1399f24a3cc 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -685,7 +685,10 @@ name: 'Delete', displayName: function(context) { var mountType = context.$file.attr('data-mounttype'); - var deleteTitle = t('files', 'Delete'); + var type = context.$file.attr('data-type'); + var deleteTitle = (type && type === 'file') + ? t('files', 'Delete file') + : t('files', 'Delete folder') if (mountType === 'external-root') { deleteTitle = t('files', 'Disconnect storage'); } else if (mountType === 'shared-root') { -- 2.39.5