Project

General

Profile

« Previous | Next » 

Revision 51584

final commit before first deployment

View differences:

landing.component.ts
12 12
  constructor(private authService: AuthenticationService, private router: Router) { }
13 13

  
14 14
  ngOnInit() {
15
    this.checkIfIsLoggedIn();
16 15
  }
17 16

  
18 17

  
......
20 19
    this.authService.loginWithState();
21 20
  }
22 21

  
23
  checkIfIsLoggedIn() {
24
    if ( this.authService.getIsUserLoggedIn() ) {
25
      this.router.navigate(['/dashboard']);
26
    }
22
  onStartHerePush() {
23
    this.router.navigate(['/dashboard']);
27 24
  }
28 25

  
29 26
  getIsUserLoggedIn() {

Also available in: Unified diff