Untitled
export class ProgressBarModalComponent implements OnInit { lstClientDetailsFA: UntypedFormGroup; selectedRow: any = 0; interviewers = []; interviewDateControl: UntypedFormControl; timeList = []; disableAction: boolean = false; formCtrlDate: any; formCtrlClientTime: UntypedFormControl; addContactFg: any; resultTypeList: any = []; buttonList: any = []; isMoneyGaurdPolicy: any = false; activeIndexButton; callInProgress = false; showProgressBar: Boolean; techObject: any; constructor( public secondaryModal: MatDialogRef<SecondaryModalComponent>, @Inject(MAT_DIALOG_DATA) public secondaryModalData: any, private interviewInfoService: InterviewInfoService, private utilService: UtilsService, public fb: UntypedFormBuilder, public technologyDashboardModal: MatDialogRef<TechnologyDashboardModalComponent>, public messageModel: MatDialog, public toaster: ToasterService, @Inject(MAT_DIALOG_DATA) public technologyDashboardModalData: any ) { } ngOnInit(): void { this.techObject = this.secondaryModalData.techObject; if (!this.secondaryModalData.buttonOneText) { this.secondaryModalData.buttonOneText = 'Ok'; } this.processTechnicalDashboardActivities(); } public processTechnicalDashboardActivities() { let policyType = ''; this.showProgressBar = true; this.interviewInfoService.processEinterviewDashboardActivities(this.techObject.policyNo, this.techObject.underId, this.techObject.serviceName, this.techObject.policyType).subscribe( (resp: any) => { if (!Boolean(resp.data?.data?.isErrorMessage)) { this.toaster.isToaster = true; this.toaster.isModal = true; this.showProgressBar = false; this.onSubmit(); // this.toaster.showToaster('success', 'A request has been sent successfully to ITES to push the eInterview completion request.'); this.toaster.showToaster('success', resp.data.data.message); } }, (err) => { this.showProgressBar = false; } ); } public onSecondaryModalClose() { this.secondaryModal.close({ event: false }); } public onSubmit() { this.secondaryModal.close({ event: true }); } public onCancel() { this.secondaryModal.close({ event: 'cancel' }); } }
Leave a Comment