1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fix parental control prompt

This commit is contained in:
Luke Pulverenti 2016-03-28 13:49:30 -04:00
parent ee03ef4f51
commit 527fe10cbe
3 changed files with 18 additions and 7 deletions

View file

@ -665,7 +665,9 @@ var Dashboard = {
var icon = item.icon;
if (icon) {
menuHtml += '<iron-icon icon="' + icon + '" class="sidebarLinkIcon"></iron-icon>';
var style = item.color ? ' style="color:' + item.color + '"' : '';
menuHtml += '<iron-icon icon="' + icon + '" class="sidebarLinkIcon"' + style + '></iron-icon>';
}
menuHtml += '<span class="sidebarLinkText">';
@ -689,6 +691,7 @@ var Dashboard = {
if (item.items) {
if (item.icon) {
var style = item.color ? ' style="color:' + item.color + '"' : '';
menuHtml += '<emby-collapsible icon="' + item.icon + '" title="' + item.name + '">';
} else {
menuHtml += '<emby-collapsible title="' + item.name + '">';
@ -716,6 +719,7 @@ var Dashboard = {
return [{
name: Globalize.translate('TabServer'),
icon: 'dashboard',
color: '#38c',
items: [
{
name: Globalize.translate('TabDashboard'),