From f1a58c7dda04054bdd2234f520cfba34473ca83a Mon Sep 17 00:00:00 2001 From: umasoodch Date: Sun, 12 Apr 2020 12:51:44 +0300 Subject: [PATCH] added more checks --- .../work-list-main-itg.component.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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));