mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #36472 from nextcloud/backport/stable24/34625
[stable24] Fix icon of encrypted folders in filepicker
This commit is contained in:
commit
29e86fb8a2
5 changed files with 12 additions and 7 deletions
|
|
@ -1206,7 +1206,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)
|
||||
|
|
|
|||
4
dist/core-login.js
vendored
4
dist/core-login.js
vendored
File diff suppressed because one or more lines are too long
2
dist/core-login.js.map
vendored
2
dist/core-login.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/core-main.js
vendored
4
dist/core-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/core-main.js.map
vendored
2
dist/core-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue