save improvements from Moura review

This commit is contained in:
tiago.kayaya
2021-04-27 14:25:10 +01:00
parent bfc4355adf
commit 809d7294ed
13 changed files with 64 additions and 47 deletions
@@ -74,7 +74,6 @@ export class ApproveEventComponent implements OnInit {
let body = { "serialNumber": serialNumber, "action": "Aprovar" }
console.log(body);
this.processes.PostTaskAction(body);
this.alertService.presentAlert('Operação realizada com sucesso!');
this.modalController.dismiss(serialNumber);
/* this.approveEventDismiss.emit({
"serialNumber": serialNumber,
@@ -99,7 +98,6 @@ export class ApproveEventComponent implements OnInit {
let body = { "serialNumber": serialNumber, "action": "Rejeitar" }
console.log(body);
this.processes.PostTaskAction(body);
this.alertService.presentAlert('Operação realizada com sucesso!');
this.router.navigate(['/home/gabinete-digital/event-list']);
this.modalController.dismiss(null);
}
@@ -148,7 +146,6 @@ export class ApproveEventComponent implements OnInit {
console.log(body);
this.processes.PostTaskAction(body);
//this.router.navigate(['/home/gabinete-digital/event-list']);
this.alertService.presentAlert('Operação realizada com sucesso!');
this.goToEventsToApprove();
}
else{
@@ -99,7 +99,9 @@ export class ViewEventPage implements OnInit {
buttons: ['OK']
});
await alert.present();
setTimeout(()=>{
alert.dismiss();
}, 1500);
this.close();
});
}