mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add book and folder icons to cards
This commit is contained in:
parent
92d14bed85
commit
a47214bbb9
1 changed files with 6 additions and 0 deletions
|
@ -1486,6 +1486,8 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'focusMana
|
|||
}
|
||||
|
||||
function getDefaultText(item, options) {
|
||||
console.debug("Getting icon for " + item.Type);
|
||||
|
||||
if (item.CollectionType) {
|
||||
return '<i class="cardImageIcon material-icons">' + imageHelper.getLibraryIcon(item.CollectionType) + '</i>'
|
||||
}
|
||||
|
@ -1500,6 +1502,10 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'focusMana
|
|||
return '<i class="cardImageIcon material-icons">movie</i>'
|
||||
case 'Series':
|
||||
return '<i class="cardImageIcon material-icons">tv</i>'
|
||||
case 'Book':
|
||||
return '<i class="cardImageIcon material-icons">book</i>'
|
||||
case 'Folder':
|
||||
return '<i class="cardImageIcon material-icons">folder</i>'
|
||||
}
|
||||
|
||||
if (options && options.defaultCardImageIcon) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue