Matrix integration
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { AuthService } from './services/auth.service';
|
||||
import { ChatService } from './services/chat.service';
|
||||
|
||||
@Component({
|
||||
// tslint:disable-next-line:component-selector
|
||||
@@ -11,11 +12,17 @@ export class AppComponent implements OnInit {
|
||||
showOverlay = true;
|
||||
|
||||
constructor(
|
||||
private authService: AuthService
|
||||
private authService: AuthService,
|
||||
private chatService: ChatService
|
||||
) { }
|
||||
|
||||
async ngOnInit(): Promise<void> {
|
||||
await this.authService.isLogged;
|
||||
console.log('AppComponent.ngInit()');
|
||||
const isLogged = await this.authService.isLogged;
|
||||
this.showOverlay = false;
|
||||
if (isLogged) {
|
||||
console.log('GO TO SSO LOGIN');
|
||||
this.chatService.goToSsoLogin();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user