para editar eventos. No funciona la asignación de hora (undefined).

This commit is contained in:
2021-04-03 14:06:39 +02:00
parent 4ee33458dc
commit b163dee4b7
6 changed files with 45 additions and 78 deletions

View File

@@ -86,12 +86,7 @@ export class Tab1Service implements OnInit{
precio2: new FormControl(null, Validators.required),
descripcion: new FormControl(null, Validators.required),
});
thisForm.controls['nombre'].setValue(evento.nombre);
thisForm.controls['fecha'].setValue(evento.fecha);
thisForm.controls['hora'].setValue(evento.hora);
thisForm.controls['precio1'].setValue(evento.precio1);
thisForm.controls['precio2'].setValue(evento.precio2);
thisForm.controls['descripcion'].setValue(evento.descripcion);
thisForm.patchValue(evento);
this.eventoForms.push(thisForm);
})
}
@@ -122,7 +117,7 @@ getDiscoteca(discotecaId: number){
}
updateEvento(evento: Eventoi){
}