]> source.dussan.org Git - nextcloud-server.git/commitdiff
Rename delete label to Delete folder/file 16742/head
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Wed, 14 Aug 2019 16:27:12 +0000 (18:27 +0200)
committerBackportbot <backportbot-noreply@rullzer.com>
Thu, 15 Aug 2019 08:21:23 +0000 (08:21 +0000)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
apps/files/js/fileactions.js

index db5d894477d00e7eb8c92664ad8102be1ad78e12..e71922a06763beb021cb0f9440ca4fb52ff00576 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') {