This commit is contained in:
Peter Maquiran
2021-06-09 15:32:54 +01:00
15 changed files with 119 additions and 123 deletions
@@ -91,10 +91,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()
}
@@ -119,7 +119,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');