loader and cancel issue fix

This commit is contained in:
venbainfotech 2022-02-05 19:05:34 +05:30
parent 9660b8944a
commit 639b820845

View File

@ -1645,9 +1645,9 @@ this.proceedonChangeProperty(modified)
// } // }
} }
sendSectiontoApi(params){ sendSectiontoApi(params){
setTimeout(()=>{ // setTimeout(()=>{
this.loaderService.showMatSpinnerDialog('Please wait...') // this.loaderService.showMatSpinnerDialog('Please wait...')
},1200) // },1200)
// alert('lastsave'); // alert('lastsave');
console.log('lastsave'); console.log('lastsave');
console.log(params); console.log(params);
@ -1657,7 +1657,7 @@ this.proceedonChangeProperty(modified)
if(response.dataStatus){ if(response.dataStatus){
console.log('response',response); console.log('response',response);
// alert('saved successfully'); // alert('saved successfully');
// this.loaderService.closeMatSpinnerDialog() this.loaderService.closeMatSpinnerDialog()
this.notifier.notify("success","Saved Successfully"); this.notifier.notify("success","Saved Successfully");
// let product_id=localStorage.getItem('product_id_salesPD') // let product_id=localStorage.getItem('product_id_salesPD')
// this.router.navigate(['../../sectionlist',product_id,this.sales_pd_type],{ relativeTo: this.route }) // this.router.navigate(['../../sectionlist',product_id,this.sales_pd_type],{ relativeTo: this.route })
@ -1690,7 +1690,7 @@ this.proceedonChangeProperty(modified)
dialogRef.afterClosed().subscribe(data => { dialogRef.afterClosed().subscribe(data => {
console.log(data) console.log(data)
if(data != false){ if(data != 'cancel'){
this.saveSalesPDAPI(section_data) this.saveSalesPDAPI(section_data)
} }
else{ else{