mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Merge pull request #551 from dkanada/header
Remove dashboard icon from header
This commit is contained in:
commit
3a4892d71f
@ -52,14 +52,6 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", "
|
||||
headerSearchButton.classList.remove("hide");
|
||||
}
|
||||
|
||||
if (headerSettingsButton) {
|
||||
if (user.localUser.Policy.IsAdministrator) {
|
||||
headerSettingsButton.classList.remove("hide");
|
||||
} else {
|
||||
headerSettingsButton.classList.add("hide");
|
||||
}
|
||||
}
|
||||
|
||||
headerCastButton.classList.remove("hide");
|
||||
} else {
|
||||
headerHomeButton.classList.add("hide");
|
||||
@ -68,10 +60,6 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", "
|
||||
if (headerSearchButton) {
|
||||
headerSearchButton.classList.add("hide");
|
||||
}
|
||||
|
||||
if (headerSettingsButton) {
|
||||
headerSettingsButton.classList.add("hide");
|
||||
}
|
||||
}
|
||||
|
||||
requiresUserRefresh = false;
|
||||
@ -95,10 +83,6 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", "
|
||||
Dashboard.navigate("mypreferencesmenu.html");
|
||||
}
|
||||
|
||||
function onSettingsClick(e) {
|
||||
Dashboard.navigate("dashboard.html");
|
||||
}
|
||||
|
||||
function onHeaderHomeButtonClick() {
|
||||
Dashboard.navigate("home.html");
|
||||
}
|
||||
@ -122,12 +106,9 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", "
|
||||
|
||||
headerUserButton.addEventListener("click", onHeaderUserButtonClick);
|
||||
headerHomeButton.addEventListener("click", onHeaderHomeButtonClick);
|
||||
initHeadRoom(skinHeader);
|
||||
headerCastButton.addEventListener("click", onCastButtonClicked);
|
||||
|
||||
if (headerSettingsButton) {
|
||||
headerSettingsButton.addEventListener("click", onSettingsClick);
|
||||
}
|
||||
initHeadRoom(skinHeader);
|
||||
}
|
||||
|
||||
function onCastButtonClicked() {
|
||||
@ -747,7 +728,6 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", "
|
||||
var headerBackButton;
|
||||
var headerUserButton;
|
||||
var currentUser;
|
||||
var headerSettingsButton;
|
||||
var headerCastButton;
|
||||
var headerSearchButton;
|
||||
var enableLibraryNavDrawer = !layoutManager.tv;
|
||||
@ -873,23 +853,20 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", "
|
||||
html += '<button is="paper-icon-button-light" class="headerCastButton castButton headerButton headerButtonRight hide"><i class="md-icon"></i></button>';
|
||||
html += '<button type="button" is="paper-icon-button-light" class="headerButton headerButtonRight headerSearchButton hide"><i class="md-icon"></i></button>';
|
||||
html += '<button is="paper-icon-button-light" class="headerButton headerButtonRight headerUserButton hide"><i class="md-icon"></i></button>';
|
||||
|
||||
if (!layoutManager.mobile) {
|
||||
html += '<button is="paper-icon-button-light" class="headerButton headerButtonRight headerSettingsButton hide"><i class="md-icon">dashboard</i></button>';
|
||||
}
|
||||
|
||||
html += "</div>";
|
||||
html += "</div>";
|
||||
html += '<div class="headerTabs sectionTabs hide">';
|
||||
html += "</div>";
|
||||
|
||||
skinHeader.classList.add("skinHeader-withBackground");
|
||||
skinHeader.classList.add("skinHeader-blurred");
|
||||
skinHeader.innerHTML = html;
|
||||
|
||||
headerHomeButton = skinHeader.querySelector(".headerHomeButton");
|
||||
headerUserButton = skinHeader.querySelector(".headerUserButton");
|
||||
headerSettingsButton = skinHeader.querySelector(".headerSettingsButton");
|
||||
headerCastButton = skinHeader.querySelector(".headerCastButton");
|
||||
headerSearchButton = skinHeader.querySelector(".headerSearchButton");
|
||||
skinHeader.classList.add("skinHeader-blurred");
|
||||
|
||||
lazyLoadViewMenuBarImages();
|
||||
bindMenuEvents();
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user