update details un upload file

This commit is contained in:
Peter Maquiran
2023-06-10 14:44:42 +01:00
parent 04b5373eaa
commit 2f6588c164
4 changed files with 13 additions and 9 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()
})
}
@@ -372,14 +372,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()
})