Removed back button from dashboard and metadata manager

This commit is contained in:
Sparky 2019-01-16 11:04:25 -05:00
parent 84dd50e995
commit 858decb4bb

View file

@ -732,12 +732,14 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", "
}
function updateBackButton(page) {
var isDashboardPage = page.classList.contains("type-interior");
if (!headerBackButton) {
headerBackButton = document.querySelector(".headerBackButton");
}
if (headerBackButton) {
if ("false" !== page.getAttribute("data-backbutton") && appRouter.canGoBack()) {
if ("false" !== !isDashboardPage && page.getAttribute("data-backbutton") && appRouter.canGoBack()) {
headerBackButton.classList.remove("hide");
} else {
headerBackButton.classList.add("hide");