From 7fefb77f5c8222ef88842cc879e729bb0202d53e Mon Sep 17 00:00:00 2001 From: =?UTF-8?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=UTF-8 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 026b1044d3..1399f24a3c 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') {