mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix dashboard Library icon
This commit is contained in:
parent
0f075fe6c4
commit
71d59feb76
1 changed files with 11 additions and 6 deletions
|
@ -220,22 +220,27 @@ define(["jQuery", "apphost", "scripts/taskbutton", "loading", "libraryMenu", "gl
|
||||||
function getIcon(type) {
|
function getIcon(type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case "movies":
|
case "movies":
|
||||||
return "local_movies";
|
return "video_library";
|
||||||
case "music":
|
case "music":
|
||||||
return "library_music";
|
return "library_music";
|
||||||
case "photos":
|
case "photos":
|
||||||
return "photo";
|
return "photo_library";
|
||||||
case "livetv":
|
case "livetv":
|
||||||
case "tvshows":
|
|
||||||
return "live_tv";
|
return "live_tv";
|
||||||
|
case "tvshows":
|
||||||
|
return "tv";
|
||||||
case "trailers":
|
case "trailers":
|
||||||
return "local_movies";
|
return "local_movies";
|
||||||
case "homevideos":
|
case "homevideos":
|
||||||
|
return "video_library";
|
||||||
case "musicvideos":
|
case "musicvideos":
|
||||||
return "video_library";
|
return "video_library";
|
||||||
case "books":
|
case "books":
|
||||||
|
return "library_books";
|
||||||
case "channels":
|
case "channels":
|
||||||
|
return "videocam";
|
||||||
case "playlists":
|
case "playlists":
|
||||||
|
return "view_list";
|
||||||
default:
|
default:
|
||||||
return "folder";
|
return "folder";
|
||||||
}
|
}
|
||||||
|
@ -302,9 +307,9 @@ define(["jQuery", "apphost", "scripts/taskbutton", "loading", "libraryMenu", "gl
|
||||||
html += " ";
|
html += " ";
|
||||||
html += "</div>";
|
html += "</div>";
|
||||||
} else if (virtualFolder.Locations.length && virtualFolder.Locations.length === 1) {
|
} else if (virtualFolder.Locations.length && virtualFolder.Locations.length === 1) {
|
||||||
html += "<div class='cardText cardText-secondary'>";
|
html += "<div class='cardText cardText-secondary'>";
|
||||||
html += virtualFolder.Locations[0];
|
html += virtualFolder.Locations[0];
|
||||||
html += "</div>";
|
html += "</div>";
|
||||||
} else {
|
} else {
|
||||||
html += "<div class='cardText cardText-secondary'>";
|
html += "<div class='cardText cardText-secondary'>";
|
||||||
html += globalize.translate("NumLocationsValue", virtualFolder.Locations.length);
|
html += globalize.translate("NumLocationsValue", virtualFolder.Locations.length);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue