[stable16] Rename delete label to Delete folder/file (#16743)

[stable16] Rename delete label to Delete folder/file
This commit is contained in:
John Molakvoæ 2019-08-15 16:39:30 +02:00 committed by GitHub
commit 558ec35c89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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') {