fix sms text, RFC Empty,Notifi-P_information

master
ashwaq 6 years ago
parent 2903783e41
commit 0f84f35d5a

@ -318,6 +318,12 @@ export class ConfirmLoginComponent implements OnInit {
console.log(el.value);
localStorage.setItem("login-type",el.value);
console.log("login-type: "+ localStorage.getItem("login-type"))
if(this.FFloginType == 3 || this.FFloginType == 2 ){
this.cs.setActiveTypeLogin(el.value);
}else{
this.cs.setActiveTypeLogin(0);
}
this.loginWithSMS(el);
break;
@ -339,7 +345,7 @@ export class ConfirmLoginComponent implements OnInit {
console.log(el.value);
this.faceReconization(el);
break;
@ -349,8 +355,12 @@ export class ConfirmLoginComponent implements OnInit {
console.log(el.value);
localStorage.setItem("login-type",el.value);
if(this.FFloginType == 3 || this.FFloginType == 2 ){
this.cs.setActiveTypeLogin(el.value);
}else{
this.cs.setActiveTypeLogin(0);
}
this.loginWithWhatsapp(el);
break;

@ -21,9 +21,9 @@
<p class="leftDiv">{{'verificationcode,title' | translate}}
<span class="boldTxtNav">{{'verificationcode,verificationcode' | translate}}</span>
{{'verificationcode,by' | translate}}
<span *ngIf="loginType == 1" class="boldTxtNav">{{'verificationcode , sms' | translate}}</span>
<span *ngIf="loginType == 4" class="boldTxtNav">{{'verificationcode , whatsapp' | translate}}</span>
<span *ngIf="loginType == 1 || activeType == 1" class="boldTxtNav">{{'verificationcode , sms' | translate}}</span>
<span *ngIf="loginType == 4 || activeType == 4" class="boldTxtNav">{{'verificationcode , whatsapp' | translate}}</span>
{{'verificationcode,instruct' | translate}}
<span class="boldTxtNav">{{'general,submit' | translate}}</span
></p>

@ -82,6 +82,7 @@ export class SmsPageComponent implements OnInit {
code: any;
user_name: string;
loginType: any;
activeType: any;
constructor(
@ -107,7 +108,8 @@ export class SmsPageComponent implements OnInit {
ngOnInit() {
this.activeType=this.common.getActiveTypeLogin();
console.log("activeType :"+this.activeType);
this.count = 0;
this.initTimer();

@ -81,6 +81,7 @@ export class CommonService {
public updateImage:boolean=false;
public setUpdateImg:any;
DT: any;
activeType: any;
constructor(
public nav: NavController,
public router: Router,
@ -1430,5 +1431,12 @@ public getMonthNameAr(value: number): string {
return this.DT;
}
setActiveTypeLogin(activeType){
this.activeType=activeType;
}
getActiveTypeLogin(){
return this.activeType;
}
}

@ -10,9 +10,9 @@
<ion-content >
<div *ngIf="!messageSuccess">
<div class="tipsPadding boldTxtNav">
<!-- <div [hidden]="!RFCEmployeeListListRes > 0" class="boldTxtNav">
{{'replacementRoll , msgRFC' | translate}}
</div>
</div> -->
<!-- <ion-list (ionChange)="radioChecked($event)" radio-group>
<ion-item *ngFor="let rfcEmployeeList of RFCEmployeeListListRes; let i = index;">
<ion-label>{{rfcEmployeeList.EMPLOYEE_DISPLAY_NAME}}</ion-label>
@ -23,7 +23,9 @@
<div class="noDataDiv" *ngIf="!RFCEmployeeListListRes > 0">
<p>{{ 'worklistMain, no-employee-available' | translate}}</p>
</div>
<ion-item lines="none">
<div class="square-container">

@ -36,8 +36,9 @@
<div *ngIf="pInformation && pInformation != '' " class="tipsPadding">{{pInformation}}</div>
<ng-container *ngIf="activeSegment === 'info'">
<div *ngIf="pInformation && pInformation != '' " class="tipsPadding">{{pInformation}}</div>
<div *ngIf="notificationBodyRes?.length > 0 ">
<ion-card *ngFor="let item of notificationBodyRes;let i=index; ">

@ -1,11 +1,4 @@
.tipsPadding{
padding: 10px 10px;
border-radius: 10px;
margin: 10px;
border: 2px solid #e4e5e7;
color: var(--customnavy);
}
.actionBtn{

@ -1938,6 +1938,10 @@
}
},
"worklistMain": {
"no-employee-available": {
"en": "No employees available to return for correction",
"ar": "لا يوجد موظفون متاحون للعودة للتصحيح"
},
"more": {
"en": "More",
"ar": "المزيد"

@ -494,6 +494,17 @@ left: 66px;
.less {
max-height: 54px;
}
.tipsPadding{
padding: 10px 10px;
border-radius: 10px;
margin: 10px;
border: 2px solid #e4e5e7;
color: var(--darkblue);
background: white;
font-weight: bold;
text-align: justify;
}
.noDataDiv{
background: #ffffff;

Loading…
Cancel
Save