Skip to content

Commit a399f20

Browse files
Fix icon of encrypted folders in filepicker
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent 20ea9a2 commit a399f20

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/src/OC/dialogs.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,12 @@ const Dialogs = {
12361236
self.$filelist.empty();
12371237

12381238
$.each(files, function(idx, entry) {
1239-
entry.icon = OC.MimeType.getIconUrl(entry.mimetype)
1239+
if (entry.isEncrypted && entry.mimetype === 'httpd/unix-directory') {
1240+
entry.icon = OC.MimeType.getIconUrl('dir-encrypted')
1241+
} else {
1242+
entry.icon = OC.MimeType.getIconUrl(entry.mimetype)
1243+
}
1244+
12401245
var simpleSize, sizeColor
12411246
if (typeof (entry.size) !== 'undefined' && entry.size >= 0) {
12421247
simpleSize = OC.Util.humanFileSize(parseInt(entry.size, 10), true)

0 commit comments

Comments
 (0)