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() {
|
googleLogin() {
|
||||||
|
this.sharedService.isBtnDisabled = true;
|
||||||
this.loginSerivce.googleLogin();
|
this.loginSerivce.googleLogin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -127,13 +127,16 @@ export class LoginService {
|
||||||
color: this.sharedService.generateRandomColor(),
|
color: this.sharedService.generateRandomColor(),
|
||||||
lastLogin: 0,
|
lastLogin: 0,
|
||||||
});
|
});
|
||||||
|
this.sharedService.isBtnDisabled = false;
|
||||||
} else {
|
} else {
|
||||||
this.ifExistUser(user.uid);
|
this.ifExistUser(user.uid);
|
||||||
|
this.sharedService.isBtnDisabled = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Google login error:', error);
|
console.error('Google login error:', error);
|
||||||
|
this.sharedService.isBtnDisabled = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue