show all options to event to approve

This commit is contained in:
Peter Maquiran
2024-07-12 10:23:02 +01:00
parent 186324832d
commit da8ac83a5b
9 changed files with 33 additions and 32 deletions
@@ -114,6 +114,7 @@ export class ApproveEventPage implements OnInit {
}
async approveTask(serialNumber: string) {
alert("lll")
let body = { "serialNumber": serialNumber, "action": "Aprovar" }
const loader = this.toastService.loading()
@@ -143,10 +144,10 @@ export class ApproveEventPage implements OnInit {
const loader = this.toastService.loading()
const result = await this.agendaDataRepository.eventToaprovalStatus(serialNumber, 'Declined', "")//.subscribe((value) => {
const result = await this.agendaDataRepository.deleteEvent(serialNumber, true)//.subscribe((value) => {
if(result.isOk()) {
this.httpErroHandle.httpsSucessMessagge('Rejeitar');
this.httpErroHandle.httpsSucessMessagge('delete event');
this.TaskService.loadEventosParaAprovacao();
this.close()