This commit is contained in:
tiago.kayaya
2021-06-09 11:51:55 +01:00
parent e5f7c05acd
commit ad52edc27a
3 changed files with 23 additions and 22 deletions
@@ -83,10 +83,10 @@ export class ApproveEventPage implements OnInit {
console.log(body);
try {
//await this.processes.PostTaskAction(body).toPromise()
await this.processes.PostTaskAction(body).toPromise()
//this.successMessage()
this.toastService.successMessage('Evento rejeitado!');
//this.goBack();
this.toastService.successMessage('Evento aprovado');
this.goBack();
} catch (error) {
this.badRequest()
}
@@ -111,7 +111,6 @@ export class ApproveEventPage implements OnInit {
async rejectTask(serialNumber:string){
let body = { "serialNumber": serialNumber, "action": "Rejeitar" }
console.log(body);
try {
this.processes.PostTaskAction(body).toPromise();
//await this.successMessage('Processo rejeitado');