diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-10-17 01:04:13 +0200 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2022-10-27 09:36:30 +0000 |
commit | 2887ee0518d364a983d626dafacdade31419c68f (patch) | |
tree | ce7181214f77bda924d4a592472296105b26de43 /core/src | |
parent | 4a448f31b25420e5bb005e619fdb8d602d78a8f0 (diff) | |
download | nextcloud-server-2887ee0518d364a983d626dafacdade31419c68f.tar.gz nextcloud-server-2887ee0518d364a983d626dafacdade31419c68f.zip |
Fix icon of encrypted folders in filepicker
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/OC/dialogs.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js index 55fd239cf22..c29d59aaad8 100644 --- a/core/src/OC/dialogs.js +++ b/core/src/OC/dialogs.js @@ -1236,7 +1236,12 @@ const Dialogs = { self.$filelist.empty(); $.each(files, function(idx, entry) { - entry.icon = OC.MimeType.getIconUrl(entry.mimetype) + if (entry.isEncrypted && entry.mimetype === 'httpd/unix-directory') { + entry.icon = OC.MimeType.getIconUrl('dir-encrypted') + } else { + entry.icon = OC.MimeType.getIconUrl(entry.mimetype) + } + var simpleSize, sizeColor if (typeof (entry.size) !== 'undefined' && entry.size >= 0) { simpleSize = OC.Util.humanFileSize(parseInt(entry.size, 10), true) |