Improve edit event to approve

This commit is contained in:
Peter Maquiran
2021-05-19 15:36:03 +01:00
parent 05724e25bf
commit 8316ab45ab
2 changed files with 7 additions and 5 deletions
@@ -257,7 +257,7 @@ export class EditEventToApproveComponent implements OnInit {
this.loadedAttachments.forEach((document:any)=>{
if(document['action'] == 'add'){
if(document['action'] == 'add') {
delete document.action
this.attachmentsService.setEventAttachmentById(document).subscribe(()=>{});
} else if(document['action'] == 'delete') {
@@ -266,8 +266,10 @@ export class EditEventToApproveComponent implements OnInit {
}
})
alert('save')
this.modalController.dismiss();
}
async openAttendees() {
@@ -345,7 +347,7 @@ export class EditEventToApproveComponent implements OnInit {
deleteAttachment(attachment: Attachment) {
this.attachmentsService.deleteEventAttachmentById(attachment.Id).subscribe( res=>{})
attachment['action'] == 'delete'
}