diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-08-14 18:27:12 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-08-14 18:28:46 +0200 |
commit | 3e1fd602eb0000b2ad3106b53ed58d4ca35a71da (patch) | |
tree | 10e44bd2856d45bc83ab93c42d657a71000e28bf | |
parent | d013ff6cae7e01f5a7e3003cde064854922297b4 (diff) | |
download | nextcloud-server-3e1fd602eb0000b2ad3106b53ed58d4ca35a71da.tar.gz nextcloud-server-3e1fd602eb0000b2ad3106b53ed58d4ca35a71da.zip |
Rename delete label to Delete folder/file
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r-- | apps/files/js/fileactions.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index 026b1044d3c..1399f24a3cc 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -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') { |