From bd1f2819083e2896c130b6f194842508d2a75fc2 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Tue, 30 Jun 2020 06:27:23 +0100 Subject: [PATCH] some explanation to to confusing code --- packages/builder/src/pages/[application]/_reset.svelte | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/builder/src/pages/[application]/_reset.svelte b/packages/builder/src/pages/[application]/_reset.svelte index 9528f25557..a75cfa0b9e 100644 --- a/packages/builder/src/pages/[application]/_reset.svelte +++ b/packages/builder/src/pages/[application]/_reset.svelte @@ -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