generate fix

This commit is contained in:
Peter Maquiran
2023-05-19 12:00:51 +01:00
parent a526b91532
commit 0efec4a16b
23 changed files with 184 additions and 208 deletions
@@ -93,6 +93,7 @@ export class ApproveEventPage implements OnInit {
await this.processes.PostTaskAction(body).toPromise()
this.modalController.dismiss(serialNumber);
this.httpErroHandle.httpsSucessMessagge('Aprovar')
this.TaskService.loadEventosParaAprovacao();
} catch (error) {
this.httpErroHandle.httpStatusHandle(error)
} finally {
@@ -112,6 +113,7 @@ export class ApproveEventPage implements OnInit {
try {
await this.processes.PostTaskAction(body).toPromise()
this.httpErroHandle.httpsSucessMessagge('Rejeitar');
this.TaskService.loadEventosParaAprovacao();
} catch (error) {
this.httpErroHandle.httpStatusHandle(error)
@@ -201,6 +203,7 @@ export class ApproveEventPage implements OnInit {
try {
await this.processes.PostTaskAction(body).toPromise();
this.httpErroHandle.httpsSucessMessagge('Rever')
this.TaskService.loadEventosParaAprovacao();
this.close();
} catch (error) {
this.httpErroHandle.httpStatusHandle(error)
@@ -213,6 +216,8 @@ export class ApproveEventPage implements OnInit {
this.toastService._badRequest('É necessário adicionar uma nota');
}
}
} else {
}