From 30ba667bb4950f5237143d3f8198d68077c8bc64 Mon Sep 17 00:00:00 2001 From: ashwaq Date: Mon, 30 Mar 2020 15:53:14 +0300 Subject: [PATCH] fix VR select , txt confirm, type last login --- Mohem/src/app/app.scss | 4 ++-- .../confirm-login/confirm-login.component.html | 4 +++- .../authentication/confirm-login/confirm-login.component.ts | 6 +++--- .../app/hmg-common/ui/welcome-login/welcome.component.ts | 4 +++- Mohem/src/app/vacation-rule/home/home.component.html | 2 +- .../vacation-type/vacation-type.component.html | 6 +++--- .../vacation-type/vacation-type.component.scss | 2 ++ Mohem/src/assets/localization/i18n.json | 4 ++++ Mohem/src/theme/styles.scss | 4 ++++ 9 files changed, 25 insertions(+), 11 deletions(-) diff --git a/Mohem/src/app/app.scss b/Mohem/src/app/app.scss index 49bf94d3..2dd0d349 100644 --- a/Mohem/src/app/app.scss +++ b/Mohem/src/app/app.scss @@ -7,12 +7,12 @@ .alert-radio-label.sc-ion-alert-md, .alert-radio-label.sc-ion-alert-ios { - white-space: normal; + white-space: normal; } .alert-tappable.sc-ion-alert-md, .alert-tappable.sc-ion-alert-ios { - height: 50px; + height: 70px; } .main-badge{ position: absolute; diff --git a/Mohem/src/app/authentication/confirm-login/confirm-login.component.html b/Mohem/src/app/authentication/confirm-login/confirm-login.component.html index f5eef814..6141871e 100644 --- a/Mohem/src/app/authentication/confirm-login/confirm-login.component.html +++ b/Mohem/src/app/authentication/confirm-login/confirm-login.component.html @@ -34,7 +34,9 @@ -

{{ts.trPK('login','verify-fingerprint')}}

+ +

{{ts.trPK('login','verify-fingerprint')}}

+

{{ts.trPK('login','verify-faceId')}}

diff --git a/Mohem/src/app/authentication/confirm-login/confirm-login.component.ts b/Mohem/src/app/authentication/confirm-login/confirm-login.component.ts index a7f708bf..6cc023cc 100644 --- a/Mohem/src/app/authentication/confirm-login/confirm-login.component.ts +++ b/Mohem/src/app/authentication/confirm-login/confirm-login.component.ts @@ -73,6 +73,7 @@ export class ConfirmLoginComponent implements OnInit { empname: string; lastLoginDate: string; user_name: string; + FFloginType: any; constructor( @@ -515,8 +516,8 @@ export class ConfirmLoginComponent implements OnInit { loginWithFingurePrint(el: any) { - if (!el.disabled) { + this.FFloginType=el.value; this.startBiometricLoginIfAvailable(); @@ -527,7 +528,7 @@ export class ConfirmLoginComponent implements OnInit { faceReconization(el: any) { if (!el.disabled) { - + this.FFloginType=el.value; this.startBiometricLoginIfAvailable(); } @@ -700,7 +701,6 @@ export class ConfirmLoginComponent implements OnInit { } }else { - this.onlySMSBox = false; this.button(); diff --git a/Mohem/src/app/hmg-common/ui/welcome-login/welcome.component.ts b/Mohem/src/app/hmg-common/ui/welcome-login/welcome.component.ts index aa5abdec..e7285713 100644 --- a/Mohem/src/app/hmg-common/ui/welcome-login/welcome.component.ts +++ b/Mohem/src/app/hmg-common/ui/welcome-login/welcome.component.ts @@ -107,7 +107,9 @@ export class WelcomeComponent implements OnInit, AfterViewInit, OnDestroy { // let todayDate = month + '/' + day + '/' + year; // this.lastLoginTime = moment(this.cs.evaluteDateAsObject(this.lastLoginDate)).format("HH:mm"); - this.logintype = parseInt(this.logintype) + // this.logintype = parseInt(this.user.LoginType) + this.logintype = this.user.LoginType; + console.log(" this.lastLoginTime" + this.lastLoginTime); console.log(" this.lastLoginDate" + this.lastLoginDate); diff --git a/Mohem/src/app/vacation-rule/home/home.component.html b/Mohem/src/app/vacation-rule/home/home.component.html index 459b9225..ba2b4758 100644 --- a/Mohem/src/app/vacation-rule/home/home.component.html +++ b/Mohem/src/app/vacation-rule/home/home.component.html @@ -79,7 +79,7 @@ {{notBadge}} -

{{item.RULE_STATUS}}


+

{{item.RULE_STATUS}}


{{item.RULE_NAME}} | {{item.ITEM_TYPE_DISPLAY_NAME}}


{{item.BEGIN_DATE | dateString }} - {{item.END_DATE | dateString}}

{{'vacation-rule, notification' | translate}} - - + {{x.NOTIFICATION_DISPLAY_NAME}} diff --git a/Mohem/src/app/vacation-rule/vacation-type/vacation-type.component.scss b/Mohem/src/app/vacation-rule/vacation-type/vacation-type.component.scss index c42fe244..1aa1c1c6 100644 --- a/Mohem/src/app/vacation-rule/vacation-type/vacation-type.component.scss +++ b/Mohem/src/app/vacation-rule/vacation-type/vacation-type.component.scss @@ -91,6 +91,8 @@ color: black !important; .stepHeaderLebal{ margin:0; } + + // .progcontainer { // margin: auto; // text-align: center; diff --git a/Mohem/src/assets/localization/i18n.json b/Mohem/src/assets/localization/i18n.json index 27ca32e7..9d75f038 100644 --- a/Mohem/src/assets/localization/i18n.json +++ b/Mohem/src/assets/localization/i18n.json @@ -154,6 +154,10 @@ "en": "To activate fingerprint login service, please verify by using one of the following options. ", "ar": "لتفعيل خدمة الدخول بالبصمة، يرجى التحقق من خلال احدى الخيارات التالية" }, + "verify-faceId": { + "en": "To activate face ID login service, please verify by using one of the following options. ", + "ar": "لتفعيل خدمة الدخول ببصمة الوجه، يرجى التحقق من خلال احدى الخيارات التالية" + }, "Verify-text":{ "en":"Verify its you", "ar":"Verify its you" diff --git a/Mohem/src/theme/styles.scss b/Mohem/src/theme/styles.scss index 8dcf9cc4..b4ce084a 100644 --- a/Mohem/src/theme/styles.scss +++ b/Mohem/src/theme/styles.scss @@ -1514,3 +1514,7 @@ table.monthview-datetable th small { background: #094875; } } + +.alert-wrapper { + min-width: 80% !important;//what ever you like + } \ No newline at end of file