mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
Fix icon of encrypted folders in filepicker
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
parent
7524b11617
commit
945edfefcd
5 changed files with 12 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
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