Fixed sidebar to support responsive mode #1.1.0.rc6
This commit is contained in:
@@ -16,7 +16,7 @@ import { takeUntil } from "rxjs/operators";
|
||||
export class AppComponent implements OnInit, OnDestroy {
|
||||
|
||||
themeName: string = Themes.Default;
|
||||
sidebarWidth: string = '175px';
|
||||
isSidebarOpen: boolean = true;
|
||||
|
||||
isLoggedIn: boolean = false;
|
||||
|
||||
@@ -29,10 +29,10 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||
private translateService: TranslateService,
|
||||
private config: PrimeNGConfig,
|
||||
) {
|
||||
this.themeService.sidebarWidth$.pipe(
|
||||
this.themeService.isSidebarOpen$.pipe(
|
||||
takeUntil(this.unsubscriber)
|
||||
).subscribe(value => {
|
||||
this.sidebarWidth = value;
|
||||
this.isSidebarOpen = value;
|
||||
});
|
||||
this.themeService.themeName$.pipe(
|
||||
takeUntil(this.unsubscriber)
|
||||
|
Reference in New Issue
Block a user