Fix loader in create process

This commit is contained in:
Peter Maquiran
2021-07-14 08:39:27 +01:00
parent ff8148796f
commit 6a48fa6959
2 changed files with 22 additions and 26 deletions
@@ -59,6 +59,8 @@ export class DespachoPage implements OnInit {
this.caller = params["params"].caller;
}
});
alert('nice')
}
ngOnInit() {
@@ -191,8 +193,8 @@ export class DespachoPage implements OnInit {
try {
await this.processes.CompleteTask(body).toPromise()
this.close();
this.toastService.successMessage('Processo criado')
this.close();
} catch(error) {
this.toastService.badRequest("Processo não criado")
}