Fix delete

This commit is contained in:
Peter Maquiran
2021-10-06 10:59:42 +01:00
parent a3bdb24f7c
commit 7583cddf2a
2 changed files with 24 additions and 1 deletions
@@ -149,6 +149,9 @@ export class ViewEventPage implements OnInit {
}
deleteEvent(){
const loader = this.toastService.loading()
this.eventsService.deleteEvent(this.loadedEvent.EventId, 0, this.loadedEvent.CalendarName).subscribe(async () =>
{
const alert = await this.alertController.create({
@@ -162,6 +165,9 @@ export class ViewEventPage implements OnInit {
}, 1500);
this.goBack();
this.toastService.successMessage('Evento apagado');
}, ()=>{},
()=>{
loader.remove();
});
}