This commit is contained in:
Peter Maquiran
2021-11-16 17:03:34 +01:00
parent d9593fa592
commit 562e405f19
5 changed files with 13 additions and 12 deletions
@@ -197,6 +197,7 @@ export class EditEventPage implements OnInit {
]),
})
}
openInicio() {
@@ -256,7 +257,8 @@ export class EditEventPage implements OnInit {
this.showLoader = true;
await this.eventsService.editEvent(this.postEvent, 2, 3).subscribe(async () => {
try {
await this.eventsService.editEvent(this.postEvent, 2, 3).toPromise()
if(this.initCalendarName != this.postEvent.CalendarName) {
let body = {
"EventId": this.postEvent.EventId,
@@ -269,11 +271,10 @@ export class EditEventPage implements OnInit {
}
this.showLoader = false;
this.toastService.successMessage()
},
error => {
} catch(error) {
this.showLoader = false
this.toastService.badRequest()
});
}
this.clearPostEvent.emit();
this.deleteTemporaryData();