From fc37c3b1cf3a5bafd7a11dbbe31d797d8a0846d5 Mon Sep 17 00:00:00 2001 From: Dani Sandoval Date: Mon, 25 Mar 2024 13:41:00 -0600 Subject: [PATCH] make help panel closed by default --- src/app/app.component.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index e24fd8d..ac84fe8 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -77,7 +77,7 @@ export class AppComponent { sectionParentRoute?: string; forcedOpen!: boolean; - helpOpen = true; + helpOpen = false; helpDocked = true; mainSectionContained = true; disableEditor = false; @@ -167,11 +167,11 @@ export class AppComponent { localStorage.getItem('app-preference-open') || 'false' ); } - + setContainedPage(url: string) { // List of page URLs that should NOT show the contained state const barePages = [ - '/', + '/', '/environments/*', '/environments/**/create', '/environments/*/compute-groups', @@ -203,7 +203,7 @@ export class AppComponent { this.cdr.detectChanges(); } - supportRoutes = { + supportRoutes = { label: 'Docs & support', icon: 'school', @@ -278,7 +278,7 @@ export class AppComponent { { label: 'Docs & support', icon: 'school', - + children: [ { path: '/learn', @@ -295,7 +295,7 @@ export class AppComponent { ], } ], - + }, environments: { path: '/environments/**', @@ -349,7 +349,7 @@ export class AppComponent { icon: 'settings', label: 'Settings', }, - {...this.supportRoutes} + { ...this.supportRoutes } ], }, consumption: {