|
|
|
|
@ -16,6 +16,8 @@ import { Password } from '../models/password';
|
|
|
|
|
import { CheckUserAuthenticationRequest } from 'src/app/hmg-common/services/authentication/models/check-user-auth.request';
|
|
|
|
|
import { CheckAppVersionResponse } from 'src/app/hmg-common/services/authentication/models/check-app-version.response';
|
|
|
|
|
import { PushService } from 'src/app/hmg-common/services/push/push.service';
|
|
|
|
|
import { KeyboardService } from 'src/app/hmg-common/services/keyboard/keyboard.service';
|
|
|
|
|
import { KeyboardStatusModel } from 'src/app/hmg-common/services/keyboard/keyboard-status.model';
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'login',
|
|
|
|
|
@ -39,7 +41,8 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|
|
|
|
public splash: SplashScreen,
|
|
|
|
|
public sharedData: SharedDataService,
|
|
|
|
|
public plt: Platform,
|
|
|
|
|
public pushService: PushService
|
|
|
|
|
public pushService: PushService,
|
|
|
|
|
public keyboardService: KeyboardService
|
|
|
|
|
) {
|
|
|
|
|
this.events.subscribe('logoutFlage', logoutFlage => {
|
|
|
|
|
console.log('login compont logoutFlage: ' + logoutFlage);
|
|
|
|
|
@ -93,6 +96,7 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|
|
|
|
logoutFlage: boolean ;
|
|
|
|
|
getuser: any = '';
|
|
|
|
|
getlastlogin: any;
|
|
|
|
|
public keyboardOpened = false;
|
|
|
|
|
|
|
|
|
|
private checkUserResult: CheckUserAuthenticationResponse;
|
|
|
|
|
|
|
|
|
|
@ -104,6 +108,7 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|
|
|
|
// );
|
|
|
|
|
// console.log("this.getlastlogin"+ this.getlastlogin);
|
|
|
|
|
// }
|
|
|
|
|
this.monitorKeyboardChange();
|
|
|
|
|
this.currentLang = TranslatorService.getCurrentLanguageCode();
|
|
|
|
|
console.log(TranslatorService.CURRENT_LANGUAGE)
|
|
|
|
|
console.log(TranslatorService.EN)
|
|
|
|
|
@ -418,6 +423,10 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private monitorKeyboardChange() {
|
|
|
|
|
this.events.subscribe ( KeyboardService.KEYBOARD_STATUS , ( status: KeyboardStatusModel) => {
|
|
|
|
|
this.keyboardOpened = status.opened;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|