FIX: clicking on design tab while data tab loads does not navigate correctly (#13152)
* If still loading, try navigation later * Set active tab even if still loading * Refactor - timeout not needed!
This commit is contained in:
parent
af44a973b4
commit
0205db104d
|
@ -69,11 +69,12 @@
|
||||||
// brought back to the same screen.
|
// brought back to the same screen.
|
||||||
const topItemNavigate = path => () => {
|
const topItemNavigate = path => () => {
|
||||||
const activeTopNav = $layout.children.find(c => $isActive(c.path))
|
const activeTopNav = $layout.children.find(c => $isActive(c.path))
|
||||||
if (!activeTopNav) return
|
if (activeTopNav) {
|
||||||
builderStore.setPreviousTopNavPath(
|
builderStore.setPreviousTopNavPath(
|
||||||
activeTopNav.path,
|
activeTopNav.path,
|
||||||
window.location.pathname
|
window.location.pathname
|
||||||
)
|
)
|
||||||
|
}
|
||||||
$goto($builderStore.previousTopNavPath[path] || path)
|
$goto($builderStore.previousTopNavPath[path] || path)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue