]> source.dussan.org Git - nextcloud-server.git/commitdiff
Rename delete label to Delete folder/file 16741/head
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Wed, 14 Aug 2019 16:27:12 +0000 (18:27 +0200)
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Wed, 14 Aug 2019 16:28:46 +0000 (18:28 +0200)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
apps/files/js/fileactions.js

index 026b1044d3c23f41e4df40645abc2ebd4e20ca1c..1399f24a3cc6105baa6a285fa4b7e87d78e705aa 100644 (file)
                                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') {