diff --git a/Mohem/src/app/notification/work-list-main-itg/work-list-main-itg.component.ts b/Mohem/src/app/notification/work-list-main-itg/work-list-main-itg.component.ts index dfd4f5e3..1ba2a318 100644 --- a/Mohem/src/app/notification/work-list-main-itg/work-list-main-itg.component.ts +++ b/Mohem/src/app/notification/work-list-main-itg/work-list-main-itg.component.ts @@ -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));