mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Imporve edit event to aprrove
This commit is contained in:
@@ -262,7 +262,7 @@ export class EditEventToApproveComponent implements OnInit {
|
||||
this.attachmentsService.setEventAttachmentById(document).subscribe(()=>{});
|
||||
} else if(document['action'] == 'delete') {
|
||||
delete document.action
|
||||
this.attachmentsService.deleteEventAttachmentById(document).subscribe( res=>{})
|
||||
this.attachmentsService.deleteEventAttachmentById(document.Id).subscribe( res=>{})
|
||||
}
|
||||
|
||||
})
|
||||
@@ -345,9 +345,10 @@ export class EditEventToApproveComponent implements OnInit {
|
||||
console.log('this.loadedAttachments', this.loadedAttachments, result)
|
||||
}
|
||||
|
||||
deleteAttachment(attachment: Attachment) {
|
||||
deleteAttachment(attachment: Attachment, index) {
|
||||
|
||||
attachment['action'] == 'delete'
|
||||
console.log('index', index)
|
||||
this.loadedAttachments[index]['action'] = 'delete'
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user