diff --git a/src/lib/layout/navigation.svelte b/src/lib/layout/navigation.svelte index 27934cf2d..5acfc9244 100644 --- a/src/lib/layout/navigation.svelte +++ b/src/lib/layout/navigation.svelte @@ -4,9 +4,18 @@ import { trackEvent } from '$lib/actions/analytics'; $: project = $page.params.project; - $: path = `${base}/console/project-${project}`; + $: projectPath = `${base}/console/project-${project}`; - let narrow = true; + $: secondSideNav = $page.data.secondSideNav; + // We need to have this second variable, because we only want narrow + // to change automatically if we change from having a second side nav to + // not having one, not when the second side nav changes to a different value. + $: hasSecondSideNav = !!secondSideNav; + + let narrow = false; + $: { + narrow = hasSecondSideNav; + }