feat: Convert login button to hompage button when user is authenticated (CAS-33) #22

Merged
ptran merged 3 commits from feat/login-to-homepage-button into main 2025-02-12 11:35:01 +00:00
Showing only changes of commit ab3bc5587e - Show all commits

View File

@ -9,12 +9,9 @@ import { RouterLink } from '@angular/router';
templateUrl: './landing-page.component.html', templateUrl: './landing-page.component.html',
}) })
export class LandingPageComponent { export class LandingPageComponent {
public isLoggedIn = false;
private keycloakService: KeycloakService = inject(KeycloakService); private keycloakService: KeycloakService = inject(KeycloakService);
private ngOnInit() { public isLoggedIn = this.keycloakService.isLoggedIn();
this.isLoggedIn = this.keycloakService.isLoggedIn();
}
public login() { public login() {
const baseUrl = window.location.origin; const baseUrl = window.location.origin;