|
|
|
|
@ -711,9 +711,9 @@ class _ConfirmLogin extends State<ConfirmLogin> {
|
|
|
|
|
checkIfUserAgreedBefore(CheckActivationCode result) {
|
|
|
|
|
if (projectViewModel.havePrivilege(109)) {
|
|
|
|
|
this.authService.checkIfUserAgreed().then((result) {
|
|
|
|
|
if (result['IsPatientAlreadyAgreed']) {
|
|
|
|
|
goToHome();
|
|
|
|
|
} else {
|
|
|
|
|
// if (result['IsPatientAlreadyAgreed']) {
|
|
|
|
|
// goToHome();
|
|
|
|
|
// } else {
|
|
|
|
|
this.authService.getUserAgreementContent().then((result) {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(AppGlobal.context);
|
|
|
|
|
Navigator.pushAndRemoveUntil(
|
|
|
|
|
@ -724,6 +724,7 @@ class _ConfirmLogin extends State<ConfirmLogin> {
|
|
|
|
|
authenticatedUserObject: authenticatedUserObject,
|
|
|
|
|
appointmentRateViewModel: appointmentRateViewModel,
|
|
|
|
|
selectedOption: selectedOption,
|
|
|
|
|
isArabic: projectViewModel.isArabic,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
(r) => false);
|
|
|
|
|
@ -731,7 +732,7 @@ class _ConfirmLogin extends State<ConfirmLogin> {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
print(err);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// }
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
print(err);
|
|
|
|
|
|