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