mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
update details un upload file
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user