fix placeholder and lang issue

master
enadhilal 6 years ago
parent e4236f698c
commit 03fb59bf34

@ -144,14 +144,18 @@ export class LoginComponent implements OnInit, OnDestroy {
let isEng = localStorage.getItem('lang')
console.log('++++++++++++++++++++'+isEng)
if(isEng !== null){
if(isEng){
if(isEng === '2'){
this.currentLang = 2;
this.language = "US";
this.changeLanguage('2')
}else{
}else if(isEng === '1'){
this.currentLang = 1;
this.language = "AR";
this.changeLanguage('1')
}else{
this.currentLang = 2;
this.language = "US";
this.changeLanguage('2')
}
}
@ -201,9 +205,9 @@ export class LoginComponent implements OnInit, OnDestroy {
if (this.password) {localStorage.setItem('password', this.password); }
if (this.currentLang) {
if(this.currentLang === 1){
localStorage.setItem('lang', 'ar');
localStorage.setItem('lang', '1');
}else{
localStorage.setItem('lang', 'en');
localStorage.setItem('lang', '2');
}
}
localStorage.setItem('remember', 'true');

Loading…
Cancel
Save