summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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') {