summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2019-08-15 10:20:20 +0200
committerGitHub <noreply@github.com>2019-08-15 10:20:20 +0200
commit0185aafbcc8765c983c83d9a5916337a72d9cf6b (patch)
tree998055fd5b8fc8178fd7969eacec6e4b98f1a83b /apps/files
parent954290ab5f7dbd8ba02c964834957aa1aa4fe390 (diff)
parent3e1fd602eb0000b2ad3106b53ed58d4ca35a71da (diff)
downloadnextcloud-server-0185aafbcc8765c983c83d9a5916337a72d9cf6b.tar.gz
nextcloud-server-0185aafbcc8765c983c83d9a5916337a72d9cf6b.zip
Rename delete label to Delete folder/file (#16741)
Rename delete label to Delete folder/file
Diffstat (limited to 'apps/files')
-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') {