summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-08-14 18:27:12 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-08-14 18:28:46 +0200
commit3e1fd602eb0000b2ad3106b53ed58d4ca35a71da (patch)
tree10e44bd2856d45bc83ab93c42d657a71000e28bf
parentd013ff6cae7e01f5a7e3003cde064854922297b4 (diff)
downloadnextcloud-server-3e1fd602eb0000b2ad3106b53ed58d4ca35a71da.tar.gz
nextcloud-server-3e1fd602eb0000b2ad3106b53ed58d4ca35a71da.zip
Rename delete label to Delete folder/file
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r--apps/files/js/fileactions.js5
1 files changed, 4 insertions, 1 deletions
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') {