aboutsummaryrefslogtreecommitdiffstats
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 db5d894477d..e71922a0676 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -673,7 +673,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') {