some explanation to to confusing code

This commit is contained in:
Michael Shanks 2020-06-30 06:27:23 +01:00
parent a3de20162f
commit a93af5e673
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,11 @@
} }
} }
// handles navigation between frontend, backend, workflow.
// this remembers your last place on each of the sections
// e.g. if one of your screens is selected on front end, then
// you browse to backend, when you click fronend, you will be
// 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) return