Fixed login state problems #70

This commit is contained in:
2022-10-16 16:01:37 +02:00
parent d5ad5ded88
commit f319e89473
4 changed files with 36 additions and 23 deletions

View File

@@ -16,7 +16,7 @@ export class AppComponent implements OnInit {
isLoggedIn: boolean = false;
constructor(
public authService: AuthService,
private authService: AuthService,
private themeService: ThemeService,
private socket: SocketService
) { }
@@ -28,9 +28,12 @@ export class AppComponent implements OnInit {
this.themeService.themeName$.subscribe(value => {
this.themeName = value;
});
this.authService.isLoggedIn$.subscribe(value => {
this.isLoggedIn = value;
});
this.socket.startSocket();
this.themeService.loadTheme();
this.socket.startSocket();
}