mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Core: Load mimetype icons from theming app if available
Signed-off-by: Julius Haertl <jus@bitgrid.net>
This commit is contained in:
parent
b3eab7db01
commit
e5f8f28d04
1 changed files with 5 additions and 0 deletions
|
|
@ -91,6 +91,11 @@ OC.MimeType = {
|
|||
path += icon;
|
||||
}
|
||||
}
|
||||
if(OCA.Theming) {
|
||||
path = OC.generateUrl('/apps/theming/image/core/filetypes/');
|
||||
path += OC.MimeType._getFile(mimeType, OC.MimeTypeList.files);
|
||||
gotIcon = true;
|
||||
}
|
||||
|
||||
// If we do not yet have an icon fall back to the default
|
||||
if (gotIcon === null) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue