From 945edfefcdfee3f6f3bb29303903b13658af0551 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Mon, 17 Oct 2022 01:04:13 +0200 Subject: Fix icon of encrypted folders in filepicker Signed-off-by: Carl Schwan --- core/src/OC/dialogs.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'core') 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) -- cgit v1.2.3