From 5bba4cb9eb6bd7a6fa3a4c3183f5f9006763e5fd Mon Sep 17 00:00:00 2001 From: ashwaq Date: Thu, 9 Apr 2020 16:17:14 +0300 Subject: [PATCH] itg succssful msg --- .../work-list-main-itg.component.ts | 22 +++++++++++++++---- 1 file changed, 18 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 c232559a..b39d8768 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 @@ -225,10 +225,11 @@ export class WorkListMainItgComponent implements OnInit { this.workListService.getITGActionRequest(request, url) .subscribe((result: any) => { if (result.MessageStatus != 1) { - this.common.presentAlert(result.Message); + this.common.presentAlert(this.ts.trPK('general', 'error-itg')); } else if (result.MessageStatus == 1) { console.log("hello action 1"); + this.common.presentAlert(this.ts.trPK('worklistMain', 'Tran_Succ')); this.confirmMsg(1) @@ -243,9 +244,11 @@ export class WorkListMainItgComponent implements OnInit { console.log("hello action 2"); if (result.MessageStatus != 1) { - this.common.presentAlert(result.Message); + this.common.presentAlert(this.ts.trPK('general', 'error-itg')); } else if (result.MessageStatus == 1) { + this.common.presentAlert(this.ts.trPK('worklistMain', 'Tran_Succ')); + this.confirmMsg(2) // this.common.openNotificationPage(); this.skip(); @@ -268,6 +271,8 @@ export class WorkListMainItgComponent implements OnInit { } if (result.MessageStatus == 1) { + this.common.presentAlert(this.ts.trPK('worklistMain', 'Tran_Succ')); + this.confirmMsg(3) // this.common.openNotificationPage(); this.skip(); @@ -285,6 +290,8 @@ export class WorkListMainItgComponent implements OnInit { this.common.presentAlert(this.ts.trPK('general', 'error-itg')); } else if (result.MessageStatus == 1) { + this.common.presentAlert(this.ts.trPK('worklistMain', 'Tran_Succ')); + this.confirmMsg(4) // this.common.openNotificationPage(); this.skip(); @@ -303,6 +310,8 @@ export class WorkListMainItgComponent implements OnInit { this.common.presentAlert(this.ts.trPK('general', 'error-itg')); } else if (result.MessageStatus == 1) { + this.common.presentAlert(this.ts.trPK('worklistMain', 'Tran_Succ')); + this.confirmMsg(5) // this.common.openNotificationPage(); this.skip(); @@ -321,9 +330,11 @@ export class WorkListMainItgComponent implements OnInit { .subscribe((result: any) => { console.log("hello action 6"); if (result.MessageStatus != 1) { - this.common.presentAlert(result.Message); + this.common.presentAlert(this.ts.trPK('general', 'error-itg')); } else if (result.MessageStatus == 1) { + this.common.presentAlert(this.ts.trPK('worklistMain', 'Tran_Succ')); + this.confirmMsg(6) // this.common.openNotificationPage(); this.skip(); @@ -336,7 +347,10 @@ export class WorkListMainItgComponent implements OnInit { } }, this.ts.trPK('general', 'ok'), - () => { this.actionSelected = '' }, this.ts.trPK('general', 'cancel'), + () => { + this.actionSelected = '' + }, + this.ts.trPK('general', 'cancel'), this.ts.trPK('vacation-rule', 'confirmation'), this.confirmMsg(action));