Fixe merge and improve sucess message

This commit is contained in:
Peter Maquiran
2021-05-28 15:45:41 +01:00
21 changed files with 322 additions and 87 deletions
@@ -169,7 +169,7 @@ export class NewEventPage implements OnInit {
if(this.profile=='mdgpr') {
this.eventService.postEventMd(this.postEvent, this.postEvent.CalendarName).subscribe(
(id) => {
async (id) => {
const eventId: string = id;
@@ -186,7 +186,7 @@ export class NewEventPage implements OnInit {
};
});
DocumentToSave.forEach((attachments, i) => {
await DocumentToSave.forEach((attachments, i) => {
this.attachmentsService.setEventAttachmentById(attachments).subscribe((res) =>{
if(DocumentToSave.length == (i+1)){