Fix data-backbutton logic
This commit is contained in:
parent
791d1ea373
commit
47f5cd330f
3 changed files with 4 additions and 6 deletions
|
@ -742,14 +742,12 @@ 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 (page.getAttribute("data-backbutton") && appRouter.canGoBack()) {
|
||||
if ("false" !== page.getAttribute("data-backbutton") && appRouter.canGoBack()) {
|
||||
headerBackButton.classList.remove("hide");
|
||||
} else {
|
||||
headerBackButton.classList.add("hide");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue