Add alerts
This commit is contained in:
parent
53f21a220f
commit
dc993b2879
1 changed files with 5 additions and 1 deletions
|
@ -11,6 +11,10 @@ export class LandingPageComponent {
|
|||
private keycloakService: KeycloakService = inject(KeycloakService);
|
||||
|
||||
login() {
|
||||
this.keycloakService.login();
|
||||
this.keycloakService.login()
|
||||
.catch(error => {
|
||||
alert("Error: Unable to redirect to login page. Please try again later.");
|
||||
console.error('Error redirecting to login:', error);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue