added more checks

mekawy-issues
umasoodch 6 years ago
parent bc1a637f93
commit f1a58c7dda

@ -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;
}
}
}
@ -303,7 +306,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