diff --git a/src/app/core/shell/shell.component.ts b/src/app/core/shell/shell.component.ts index 9445c7a78..20fee71ac 100644 --- a/src/app/core/shell/shell.component.ts +++ b/src/app/core/shell/shell.component.ts @@ -23,6 +23,7 @@ export class ShellComponent implements OnInit { private progressBarService: ProgressBarService) { } ngOnInit() { + this.sidenavCollapsed = true; this.progressBarService.updateProgressBar.subscribe((mode: string) => { this.progressBarMode = mode; }); diff --git a/src/app/core/shell/toolbar/toolbar.component.ts b/src/app/core/shell/toolbar/toolbar.component.ts index feb16a425..76d78b9db 100644 --- a/src/app/core/shell/toolbar/toolbar.component.ts +++ b/src/app/core/shell/toolbar/toolbar.component.ts @@ -40,6 +40,7 @@ export class ToolbarComponent implements OnInit { constructor(private breakpointObserver: BreakpointObserver) { } ngOnInit() { + this.sidenavCollapsed = !this.sidenavCollapsed; this.isHandset$.subscribe(isHandset => { this.isHandset = isHandset; });