added more checks

mekawy-issues
umasoodch 6 years ago
parent bc1a637f93
commit f1a58c7dda

@ -181,6 +181,7 @@ export class WorkListMainItgComponent implements OnInit {
return false; return false;
} }
} else if (this.index === this.all_request_names.length) { //if its the end request redirecte to worklist home } 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(); this.common.openNotificationPage();
return false; 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. if (this.index !== this.all_request.length) { // check if its last one to redirecte to home otherwise to next request.
this.clearDataArray(); this.clearDataArray();
this.changeITGForm(this.all_request[this.index], this.request_name); this.changeITGForm(this.all_request[this.index], this.request_name);
break break;
} else { } else {
this.common.sharedService.setSharedData(true, 'loadWorkList');
this.common.openNotificationPage(); this.common.openNotificationPage();
break break;
} }
} else { } else {
this.common.sharedService.setSharedData(true, 'loadWorkList');
this.common.openNotificationPage(); this.common.openNotificationPage();
break break;
} }
} }
} }

Loading…
Cancel
Save