fix placeholder and lang issue

master
enadhilal 6 years ago
parent 432c95ab1b
commit e4236f698c

@ -142,14 +142,18 @@ export class LoginComponent implements OnInit, OnDestroy {
this.logintype = localStorage.getItem('login-type');
// tslint:disable-next-line: radix
let isEng = localStorage.getItem('lang')
if(isEng){
this.currentLang = 2;
this.language = "US";
this.changeLanguage('2')
}else{
this.currentLang = 1;
this.language = "AR";
this.changeLanguage('1')
console.log('++++++++++++++++++++'+isEng)
if(isEng !== null){
if(isEng){
this.currentLang = 2;
this.language = "US";
this.changeLanguage('2')
}else{
this.currentLang = 1;
this.language = "AR";
this.changeLanguage('1')
}
}
// tslint:disable-next-line: triple-equals
if (remember == 'true') { this.remeberMe = true; } else { this.remeberMe = false; }

Loading…
Cancel
Save