Removed themeService from templates #70
This commit is contained in:
@@ -10,15 +10,32 @@ import { ThemeService } from './services/theme/theme.service';
|
||||
})
|
||||
export class AppComponent implements OnInit {
|
||||
|
||||
themeName!: string;
|
||||
sidebarWidth!: string;
|
||||
|
||||
isLoggedIn: boolean = false;
|
||||
|
||||
constructor(
|
||||
public authService: AuthService,
|
||||
public themeService: ThemeService,
|
||||
private themeService: ThemeService,
|
||||
private socket: SocketService
|
||||
) { }
|
||||
|
||||
ngOnInit(): void {
|
||||
this.themeService.sidebarWidth$.subscribe(value => {
|
||||
this.sidebarWidth = value;
|
||||
});
|
||||
this.themeService.themeName$.subscribe(value => {
|
||||
this.themeName = value;
|
||||
});
|
||||
|
||||
this.socket.startSocket();
|
||||
this.themeService.loadTheme();
|
||||
this.themeService.loadMenu();
|
||||
}
|
||||
|
||||
|
||||
setSideWidth($event: any): void {
|
||||
this.themeService.setSideWidth($event);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user