This commit is contained in:
tiago.kayaya
2021-09-15 09:33:13 +01:00
parent fb5d7d797c
commit 90e0ee62fa
6 changed files with 98 additions and 70 deletions
@@ -130,12 +130,12 @@ export class ViewEventPage implements OnInit {
this.customDate = this.days[this.today.getDay()]+ ", " + this.today.getDate() +" de " + ( this.months[this.today.getMonth()]); */
loader.remove()
}, (error)=>{
if(error.status == 0) {
this.toastService.badRequest('Não é possível vizualizar este evento no modo offline')
} else {
this.toastService.badRequest('Este evento já não existe na sua agenda')
}
}
loader.remove()
this.modalController.dismiss('Eevent not Foud');
@@ -144,7 +144,7 @@ export class ViewEventPage implements OnInit {
}
deleteEvent(){
this.eventsService.deleteEvent(this.loadedEvent.EventId, 0).subscribe(async () =>
this.eventsService.deleteEvent(this.loadedEvent.EventId, 0, this.loadedEvent.CalendarName).subscribe(async () =>
{
const alert = await this.alertController.create({
cssClass: 'my-custom-class',
@@ -162,7 +162,7 @@ export class ViewEventPage implements OnInit {
async OpenDeleteEventModal() {
const modal = await this.modalController.create({
component: EliminateEventPage,
componentProps: {