fix agenda and publication

This commit is contained in:
Peter Maquiran
2024-05-24 11:29:53 +01:00
parent fcb6727f4e
commit 3eecefcfa6
38 changed files with 651 additions and 216 deletions
@@ -162,28 +162,28 @@ export class EditEventPage implements OnInit {
Save()
{
if (this.ionicForm.valid){
// if (this.ionicForm.valid){
this.activatedRoute.paramMap.subscribe(paramMap =>{
if (paramMap.has("profile")){
// this.activatedRoute.paramMap.subscribe(paramMap =>{
// if (paramMap.has("profile")){
}
});
// }
// });
this.eventsService.editEvent(this.loadedEvent, 2, 3).subscribe(async () =>
{
const alert = await this.alertController.create({
cssClass: 'my-custom-class',
header: 'Evento actualizado',
buttons: ['OK']
});
// this.eventsService.editEvent(this.loadedEvent, 2, 3).subscribe(async () =>
// {
// const alert = await this.alertController.create({
// cssClass: 'my-custom-class',
// header: 'Evento actualizado',
// buttons: ['OK']
// });
setTimeout(()=>{
alert.dismiss();
}, 1500);
});
}
// setTimeout(()=>{
// alert.dismiss();
// }, 1500);
// });
// }
}
showAlert(){
@@ -163,27 +163,27 @@ export class EventDetailPage implements OnInit {
Save()
{
if (this.ionicForm.valid){
// if (this.ionicForm.valid){
this.activatedRoute.paramMap.subscribe(paramMap =>{
if (paramMap.has("profile")){
// this.activatedRoute.paramMap.subscribe(paramMap =>{
// if (paramMap.has("profile")){
}
});
// }
// });
this.eventsService.editEvent(this.loadedEvent, 2, 3).subscribe(async () =>
{
const alert = await this.alertController.create({
cssClass: 'my-custom-class',
header: 'Evento actualizado',
buttons: ['OK']
});
// this.eventsService.editEvent(this.loadedEvent, 2, 3).subscribe(async () =>
// {
// const alert = await this.alertController.create({
// cssClass: 'my-custom-class',
// header: 'Evento actualizado',
// buttons: ['OK']
// });
setTimeout(()=>{
alert.dismiss();
}, 1500);
});
}
// setTimeout(()=>{
// alert.dismiss();
// }, 1500);
// });
// }
}
showAlert(){