mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Removed back button from dashboard and metadata manager
This commit is contained in:
parent
84dd50e995
commit
858decb4bb
1 changed files with 3 additions and 1 deletions
|
@ -732,12 +732,14 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", "
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateBackButton(page) {
|
function updateBackButton(page) {
|
||||||
|
var isDashboardPage = page.classList.contains("type-interior");
|
||||||
|
|
||||||
if (!headerBackButton) {
|
if (!headerBackButton) {
|
||||||
headerBackButton = document.querySelector(".headerBackButton");
|
headerBackButton = document.querySelector(".headerBackButton");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (headerBackButton) {
|
if (headerBackButton) {
|
||||||
if ("false" !== page.getAttribute("data-backbutton") && appRouter.canGoBack()) {
|
if ("false" !== !isDashboardPage && page.getAttribute("data-backbutton") && appRouter.canGoBack()) {
|
||||||
headerBackButton.classList.remove("hide");
|
headerBackButton.classList.remove("hide");
|
||||||
} else {
|
} else {
|
||||||
headerBackButton.classList.add("hide");
|
headerBackButton.classList.add("hide");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue