added login dialog to google login
This commit is contained in:
parent
4068aecb7a
commit
60d00f4a5b
2 changed files with 4 additions and 0 deletions
|
|
@ -57,6 +57,7 @@ export class LoginComponent {
|
|||
}
|
||||
|
||||
googleLogin() {
|
||||
this.sharedService.isBtnDisabled = true;
|
||||
this.loginSerivce.googleLogin();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue