added login dialog to google login

This commit is contained in:
Chneemann 2024-05-20 09:38:43 +02:00
parent 4068aecb7a
commit 60d00f4a5b
2 changed files with 4 additions and 0 deletions

View file

@ -57,6 +57,7 @@ export class LoginComponent {
}
googleLogin() {
this.sharedService.isBtnDisabled = true;
this.loginSerivce.googleLogin();
}

View file

@ -127,13 +127,16 @@ export class LoginService {
color: this.sharedService.generateRandomColor(),
lastLogin: 0,
});
this.sharedService.isBtnDisabled = false;
} else {
this.ifExistUser(user.uid);
this.sharedService.isBtnDisabled = false;
}
});
})
.catch((error) => {
console.error('Google login error:', error);
this.sharedService.isBtnDisabled = false;
});
}