From a93af5e67374cc4e2c30ce631dccedeed734839f 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