para editar eventos. No funciona la asignación de hora (undefined).
This commit is contained in:
@@ -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){
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user