bugfixing

This commit is contained in:
2020-06-14 15:46:24 +02:00
parent 1e1e127f13
commit 19b28453d3
36 changed files with 175 additions and 97 deletions

View File

@@ -27,12 +27,14 @@ export class NewComponent implements OnInit {
this.form = new FormGroup({
date: new FormControl(null, Validators.required),
showType: new FormControl(null, Validators.required),
})
});
}
public async onSave() {
this.form.markAllAsTouched();
if (!this.form.valid) return;
if (!this.form.valid) {
return;
}
const id = await this.showService.new$(this.form.value);
await this.router.navigateByUrl('/shows/' + id);