This commit is contained in:
Peter Maquiran
2021-10-06 09:28:58 +01:00
parent d8757b4c58
commit a3bdb24f7c
4 changed files with 13 additions and 14 deletions
@@ -125,6 +125,8 @@ export class EditEventPage implements OnInit {
}
this.loadedEventAttachments = this.loadedEventAttachments.concat(this.postEvent.Attachments)
this.getRecurrenceTypes();
this.postEvent.EventRecurrence.Type = this.postEvent.EventRecurrence.Type.toString();
@@ -268,15 +270,18 @@ export class EditEventPage implements OnInit {
this.clearPostEvent.emit();
this.deleteTemporaryData();
this.close();
this.saveDocument()
await this.saveDocument()
this.close();
}
saveDocument() {
async saveDocument() {
this.loadedEventAttachments.forEach((e)=>{
console.log(this.loadedEventAttachments)
await this.loadedEventAttachments.forEach( async (e)=>{
const id: any = e.Id
const remove = e['remove']
@@ -329,8 +334,6 @@ export class EditEventPage implements OnInit {
}
saveTemporaryData() {
window['temp.path:/home/agenda/edit-event.component.ts'] = {
@@ -413,7 +416,6 @@ export class EditEventPage implements OnInit {
console.log( this.loadedEventAttachments)
this.loadedEventAttachments.push(ApplicationIdDocumentToSave)
}
});
}