save improvements from Moura review

This commit is contained in:
tiago.kayaya
2021-04-27 14:25:10 +01:00
parent bfc4355adf
commit 809d7294ed
13 changed files with 64 additions and 47 deletions
@@ -150,7 +150,9 @@ export class EventEditPage implements OnInit {
buttons: ['OK']
});
await alert.present();
setTimeout(()=>{
alert.dismiss();
}, 1500);
this.router.navigate(['/home/events']);
});
@@ -169,13 +171,15 @@ export class EventEditPage implements OnInit {
this.eventsService.editEvent(this.loadedEvent, 2, 3).subscribe(async () =>
{
const alert = await this.alertController.create({
const alert = await this.alertController.create({
cssClass: 'my-custom-class',
header: 'Evento actualizado',
buttons: ['OK']
});
await alert.present();
setTimeout(()=>{
alert.dismiss();
}, 1500);
});
}
}
@@ -144,7 +144,9 @@ export class EventDetailModalPage implements OnInit {
buttons: ['OK']
});
await alert.present();
setTimeout(()=>{
alert.dismiss();
}, 1500);
this.router.navigate(['/home/events']);
});
@@ -163,7 +165,9 @@ export class EventDetailModalPage implements OnInit {
buttons: ['OK']
});
await alert.present();
setTimeout(()=>{
alert.dismiss();
}, 1500);
});
}
}
@@ -144,13 +144,13 @@ export class EventDetailPage implements OnInit {
{
this.eventsService.deleteEvent(this.loadedEvent.EventId, 0).subscribe(async () =>
{
const alert = await this.alertController.create({
/* const alert = await this.alertController.create({
cssClass: 'my-custom-class',
header: 'Evento removido',
buttons: ['OK']
});
await alert.present();
await alert.present(); */
this.router.navigate(['/home/events']);
});
@@ -175,7 +175,9 @@ export class EventDetailPage implements OnInit {
buttons: ['OK']
});
await alert.present();
setTimeout(()=>{
alert.dismiss();
}, 1500);
});
}
}