[stable16] Rename delete label to Delete folder/file (#16743)
[stable16] Rename delete label to Delete folder/file
This commit is contained in:
commit
558ec35c89
|
@ -685,7 +685,10 @@
|
||||||
name: 'Delete',
|
name: 'Delete',
|
||||||
displayName: function(context) {
|
displayName: function(context) {
|
||||||
var mountType = context.$file.attr('data-mounttype');
|
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') {
|
if (mountType === 'external-root') {
|
||||||
deleteTitle = t('files', 'Disconnect storage');
|
deleteTitle = t('files', 'Disconnect storage');
|
||||||
} else if (mountType === 'shared-root') {
|
} else if (mountType === 'shared-root') {
|
||||||
|
|
Loading…
Reference in New Issue