|
|
|
|
@ -74,7 +74,7 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|
|
|
|
public remeberMe: boolean;
|
|
|
|
|
private iosLink: string;
|
|
|
|
|
private androidLink: string;
|
|
|
|
|
public currentLang: any = 1;
|
|
|
|
|
public currentLang = 1;
|
|
|
|
|
private patientOutSA: boolean;
|
|
|
|
|
private loginTokenID: string;
|
|
|
|
|
private isMobileFingerPrint: boolean;
|
|
|
|
|
@ -95,14 +95,18 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|
|
|
|
private checkUserResult: CheckUserAuthenticationResponse;
|
|
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
|
console.log("ENAD TEST!!!")
|
|
|
|
|
this.currentLang = TranslatorService.getCurrentLanguageCode();
|
|
|
|
|
console.log(TranslatorService.CURRENT_LANGUAGE)
|
|
|
|
|
console.log(TranslatorService.EN)
|
|
|
|
|
if (TranslatorService.CURRENT_LANGUAGE == TranslatorService.EN) {
|
|
|
|
|
this.language = "US";
|
|
|
|
|
this.changeLanguage('2')
|
|
|
|
|
} else {
|
|
|
|
|
this.language = "AR";
|
|
|
|
|
this.changeLanguage('1')
|
|
|
|
|
}
|
|
|
|
|
this.ts.switchLanguage();
|
|
|
|
|
this.currentLang = TranslatorService.getCurrentLanguageCode();
|
|
|
|
|
console.log("current lang: "+this.currentLang)
|
|
|
|
|
//this.ts.switchLanguage();
|
|
|
|
|
// this.deviceToken= this.cs.sharedService.getSharedData(AuthenticationService.DEVICE_TOKEN, false);
|
|
|
|
|
// console.log("get deviceToken login"+ this.deviceToken)
|
|
|
|
|
|
|
|
|
|
@ -191,7 +195,10 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public changeLanguage(langNumber) {
|
|
|
|
|
console.log("current lang: "+this.currentLang)
|
|
|
|
|
console.log("click lang: "+langNumber)
|
|
|
|
|
if(this.currentLang == langNumber){
|
|
|
|
|
this.currentLang = langNumber;
|
|
|
|
|
return;
|
|
|
|
|
}else{
|
|
|
|
|
this.ts.switchLanguage();
|
|
|
|
|
@ -202,6 +209,7 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|
|
|
|
}
|
|
|
|
|
this.currentLang = TranslatorService.getCurrentLanguageCode();
|
|
|
|
|
}
|
|
|
|
|
this.currentLang = langNumber;
|
|
|
|
|
}
|
|
|
|
|
public forgetPasswordPage() {
|
|
|
|
|
this.cs.openUserForgot();
|
|
|
|
|
|