Pull made

This commit is contained in:
Eudes Inácio
2023-06-10 17:06:45 +01:00
52 changed files with 344 additions and 330 deletions
@@ -55,6 +55,10 @@ export class ApproveEventPage implements OnInit {
) {
// Event to approve list
window['edit-approve-event-desktop'] = ()=> {
this.getTask()
}
}
toDateString(e) {
@@ -168,6 +172,7 @@ export class ApproveEventPage implements OnInit {
});
return await popover.present().then(() =>{
this.TaskService.loadEventosParaAprovacao()
this.getTask()
})
}
@@ -375,14 +375,14 @@ export class EditEventToApprovePage implements OnInit {
if(document['action'] == 'add') {
delete document.action
this.attachmentsService.setEventAttachmentById(document).subscribe(()=>{
window['edit-approve-event-desktop']()
}, error =>{
this.toastService.badRequest();
});
} else if(document['action'] == 'delete') {
delete document.action
this.attachmentsService.deleteEventAttachmentById(document.Id).subscribe( res=>{
window['edit-approve-event-desktop']()
}, error =>{
this.toastService.badRequest()
})