Merge branch 'master-newdesign' into fatma-issu

master
Mohamed Mekawy 6 years ago
commit 6439edde4e

@ -62,6 +62,8 @@ export class SmsPageComponent implements OnInit {
ngOnInit() {
this.activeType=this.common.getActiveTypeLogin();
console.log("active "+ this.common.sharedService.getSharedData('active-type',true));
console.log("activeType :"+this.activeType);
this.count = 0;
this.initTimer();
@ -178,6 +180,7 @@ export class SmsPageComponent implements OnInit {
if (this.platform.is('cordova')) {
this.insertMobileLogin();
}
this.activeType =this.common.setActiveTypeLogin(0);
this.common.openHome();
});
}

@ -345,8 +345,10 @@ export class HomeComponent implements OnInit {
arrayToFilter = this.newWorkListResponse.filter((workList) => {
return workList.ITEM_TYPE === filter;
});
const sortData = this.sortArray(arrayToFilter);
this.showFormattedData = this.categorizeData(sortData);
const categorizeData = this.categorizeData(arrayToFilter);
this.showFormattedData = this.sortArray(categorizeData);
// const sortData = this.sortArray(arrayToFilter);
// this.showFormattedData = this.categorizeData(sortData);
}
}
@ -596,6 +598,7 @@ export class HomeComponent implements OnInit {
}
this.common.sharedService.setSharedData(segmentInfo, HomeComponent.REQUSET_INFO);
this.common.sharedService.setSharedData(this.ITGItem, HomeComponent.ALL_REQUEST);
this.common.sharedService.setSharedData(false, 'loadWorkList');
this.common.openWorklistITGPage();
}

@ -166,17 +166,17 @@
<ion-tab-bar class="tabBar" slot="bottom" style="overflow-x: scroll;">
<!-- <ion-tab-button *ngFor='let action of actionBTN' [hidden]="action.isAvailable" > -->
<ion-tab-button *ngFor='let action of actionBTN; let i=index' [hidden]='!action.isAvailable'
(click)="selectAtion(action.name)" [ngClass]="i === 0 ? 'tabs-margin' : ''">
<ion-tab-button style="max-width: 20%;" *ngFor='let action of actionBTN; let i=index' [hidden]='!action.isAvailable'
(click)="selectAtion(action.name)">
<img [src]="action.image">
<ion-label style="font-size: 12px;">{{action.name}}</ion-label>
<ion-label style="font-size: 11px;">{{action.name}}</ion-label>
</ion-tab-button>
<ion-tab-button (click)="skip()">
<ion-tab-button (click)="skip()" style="max-width: 20%;">
<img src="../assets/imgs/action-skip.png">
<ion-label style="font-size: 12px;">Skip</ion-label>
<ion-label style="font-size: 11px;">Skip</ion-label>
</ion-tab-button>
</ion-tab-bar>

@ -181,6 +181,7 @@ export class WorkListMainItgComponent implements OnInit {
return false;
}
} else if (this.index === this.all_request_names.length) { //if its the end request redirecte to worklist home
this.common.sharedService.setSharedData(true, 'loadWorkList');
this.common.openNotificationPage();
return false;
}
@ -193,14 +194,16 @@ export class WorkListMainItgComponent implements OnInit {
if (this.index !== this.all_request.length) { // check if its last one to redirecte to home otherwise to next request.
this.clearDataArray();
this.changeITGForm(this.all_request[this.index], this.request_name);
break
break;
} else {
this.common.sharedService.setSharedData(true, 'loadWorkList');
this.common.openNotificationPage();
break
break;
}
} else {
this.common.sharedService.setSharedData(true, 'loadWorkList');
this.common.openNotificationPage();
break
break;
}
}
}
@ -359,7 +362,7 @@ export class WorkListMainItgComponent implements OnInit {
}, this.ts.trPK('general', 'ok'),
() => {
this.actionSelected = '';
this.common.sharedService.setSharedData(true, 'loadWorkList');
this.common.sharedService.setSharedData(true, 'loadWorkList');
}, this.ts.trPK('general', 'cancel'),
this.ts.trPK('vacation-rule', 'confirmation'),
this.confirmMsg(action));

Loading…
Cancel
Save