diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-10-17 01:04:13 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-10-17 01:04:13 +0200 |
commit | 945edfefcdfee3f6f3bb29303903b13658af0551 (patch) | |
tree | 852bcfea81c08820e53d421b6335be725e3d59ea /core | |
parent | 7524b11617f41886572a2806de12a3d470ace90f (diff) | |
download | nextcloud-server-945edfefcdfee3f6f3bb29303903b13658af0551.tar.gz nextcloud-server-945edfefcdfee3f6f3bb29303903b13658af0551.zip |
Fix icon of encrypted folders in filepicker
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'core')
-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) |