Components/create-edit-modal: show values from show, if set
This commit is contained in:
parent
3c80eadf7e
commit
be31699167
1 changed files with 5 additions and 5 deletions
|
|
@ -24,11 +24,11 @@ export class CreateEditModalComponent {
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.newShowForm = new FormGroup({
|
this.newShowForm = new FormGroup({
|
||||||
title: new FormControl("", Validators.required),
|
title: new FormControl(this.show?.title, Validators.required),
|
||||||
date: new FormControl("", Validators.required),
|
date: new FormControl(this.show?.date, Validators.required),
|
||||||
seasons: new FormControl("", [Validators.required, Validators.min(1)]),
|
seasons: new FormControl(this.show?.seasons, [Validators.required, Validators.min(1)]),
|
||||||
episodes: new FormControl("", [Validators.required, Validators.min(1)]),
|
episodes: new FormControl(this.show?.episodes, [Validators.required, Validators.min(1)]),
|
||||||
description: new FormControl("", Validators.required)
|
description: new FormControl(this.show?.description, Validators.required)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue