loader and cancel issue fix
This commit is contained in:
parent
9660b8944a
commit
639b820845
@ -1645,9 +1645,9 @@ this.proceedonChangeProperty(modified)
|
||||
// }
|
||||
}
|
||||
sendSectiontoApi(params){
|
||||
setTimeout(()=>{
|
||||
this.loaderService.showMatSpinnerDialog('Please wait...')
|
||||
},1200)
|
||||
// setTimeout(()=>{
|
||||
// this.loaderService.showMatSpinnerDialog('Please wait...')
|
||||
// },1200)
|
||||
// alert('lastsave');
|
||||
console.log('lastsave');
|
||||
console.log(params);
|
||||
@ -1657,7 +1657,7 @@ this.proceedonChangeProperty(modified)
|
||||
if(response.dataStatus){
|
||||
console.log('response',response);
|
||||
// alert('saved successfully');
|
||||
// this.loaderService.closeMatSpinnerDialog()
|
||||
this.loaderService.closeMatSpinnerDialog()
|
||||
this.notifier.notify("success","Saved Successfully");
|
||||
// let product_id=localStorage.getItem('product_id_salesPD')
|
||||
// this.router.navigate(['../../sectionlist',product_id,this.sales_pd_type],{ relativeTo: this.route })
|
||||
@ -1690,7 +1690,7 @@ this.proceedonChangeProperty(modified)
|
||||
|
||||
dialogRef.afterClosed().subscribe(data => {
|
||||
console.log(data)
|
||||
if(data != false){
|
||||
if(data != 'cancel'){
|
||||
this.saveSalesPDAPI(section_data)
|
||||
}
|
||||
else{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user