1
0
Fork 0
mirror of synced 2024-07-08 15:56:23 +12:00

some explanation to to confusing code

This commit is contained in:
Michael Shanks 2020-06-30 06:27:23 +01:00
parent c5c21d6929
commit bd1f281908

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 activeTopNav = $layout.children.find(c => $isActive(c.path))
if (!activeTopNav) return