diff --git a/src/app/pages/publications/publications.page.ts b/src/app/pages/publications/publications.page.ts index bb74a7ae3..fa75f9dd2 100644 --- a/src/app/pages/publications/publications.page.ts +++ b/src/app/pages/publications/publications.page.ts @@ -118,7 +118,7 @@ export class PublicationsPage implements OnInit { return window.innerWidth } - getActions(){ + getActions() { this.showLoader = true; this.publications.GetPublicationFolderList().subscribe(res=>{ this.publicationFolderList = res; @@ -136,7 +136,7 @@ export class PublicationsPage implements OnInit { DateEnd: this.theEndDate.getDate() +" de " + ( this.months[this.theEndDate.getMonth()])+" de " +this.theEndDate.getFullYear(), ActionType: data.ActionType, } - if(data.ActionType == "Evento"){ + if(data.ActionType == "Evento") { this.publicationsEventFolderList.push(folder); } else{ diff --git a/src/app/shared/agenda/edit-event/edit-event.page.ts b/src/app/shared/agenda/edit-event/edit-event.page.ts index b3fba5290..2b73bdb85 100644 --- a/src/app/shared/agenda/edit-event/edit-event.page.ts +++ b/src/app/shared/agenda/edit-event/edit-event.page.ts @@ -102,7 +102,7 @@ export class EditEventPage implements OnInit { public alertController: AlertController, private attachmentsService: AttachmentsService, private toastService: ToastService ) { - + } ngOnInit() { @@ -268,8 +268,13 @@ export class EditEventPage implements OnInit { "EventId": this.postEvent.EventId, "CalendarDestinationName": this.postEvent.CalendarName, } + console.log(body); - await this.eventsService.changeAgenda(body).toPromise(); + + try { + await this.eventsService.changeAgenda(body).toPromise(); + } catch (e) {} + } this.showLoader = false; this.toastService.successMessage()