|
|
|
|
@ -24,6 +24,7 @@ import { PushService } from 'src/app/hmg-common/services/push/push.service';
|
|
|
|
|
})
|
|
|
|
|
export class LoginComponent implements OnInit, OnDestroy {
|
|
|
|
|
deviceToken1: any;
|
|
|
|
|
direction: string;
|
|
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
|
public cs: CommonService,
|
|
|
|
|
@ -41,6 +42,7 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|
|
|
|
public plt: Platform,
|
|
|
|
|
public pushService: PushService
|
|
|
|
|
) {
|
|
|
|
|
this.direction = TranslatorService.getCurrentLanguageName();
|
|
|
|
|
this.events.subscribe('logoutFlage', logoutFlage => {
|
|
|
|
|
console.log('login compont logoutFlage: ' + logoutFlage);
|
|
|
|
|
// tslint:disable-next-line: triple-equals
|
|
|
|
|
@ -184,6 +186,11 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|
|
|
|
this.currentLang = TranslatorService.getCurrentLanguageCode();
|
|
|
|
|
}
|
|
|
|
|
this.currentLang = langNumber;
|
|
|
|
|
if (TranslatorService.CURRENT_LANGUAGE == TranslatorService.EN){
|
|
|
|
|
this.direction = 'en';
|
|
|
|
|
} else {
|
|
|
|
|
this. direction = 'ar';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public forgetPasswordPage() {
|
|
|
|
|
this.cs.openUserForgot();
|
|
|
|
|
|