This commit is contained in:
tiago.kayaya
2021-07-29 16:21:48 +01:00
parent b1d0f19237
commit 52ebda8b80
3 changed files with 11 additions and 14 deletions
@@ -94,6 +94,7 @@ export class ViewEventPage implements OnInit {
loadEvent() {
this.eventsService.getEvent(this.eventId).subscribe(res => {
console.log(res);
this.loadedEvent = res;
this.today = new Date(res.StartDate);
this.customDate = this.days[this.today.getDay()]+ ", " + this.today.getDate() +" de " + ( this.months[this.today.getMonth()]);
@@ -110,14 +111,14 @@ export class ViewEventPage implements OnInit {
this.toastService.badRequest('não é possível vizualizar este event no modo offline')
} else {
this.toastService.badRequest('Este evento já não existe na sua agenda')
}
}
})
;
}
async deleteEvent(){
if (this.loadedEvent.IsRecurring) {
} else {
@@ -130,7 +131,7 @@ export class ViewEventPage implements OnInit {
}
async deleteRecurringEvent() {
const modal = await this.modalController.create({
component: EliminateEventPage,
componentProps: {},