Fixed login state problems #70
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user