This commit is contained in:
Peter Maquiran
2021-07-16 19:32:13 +01:00
parent c028e4e6f5
commit 050f84bc8e
13 changed files with 49 additions and 48 deletions
@@ -56,13 +56,13 @@ export class EventActionsPopoverPage implements OnInit {
this.popoverController.dismiss();
}
approveTask() {
async approveTask() {
let body = { "serialNumber": this.serialNumber, "action": "Aprovar" }
console.log(body);
const loader = this.toastService.loading()
try {
this.processes.PostTaskAction(body).toPromise()
await this.processes.PostTaskAction(body).toPromise()
this.toastService.successMessage();
this.goBack();
@@ -127,7 +127,7 @@ export class EventActionsPopoverPage implements OnInit {
const loader = this.toastService.loading()
try {
this.processes.PostTaskAction(body).toPromise();
await this.processes.PostTaskAction(body).toPromise();
await this.toastService.successMessage('Processo rejeitado');
this.goBack();
} catch (error) {