adding presentation background
This commit is contained in:
@@ -5,7 +5,7 @@ import {Show} from '../services/show';
|
||||
import {ShowService} from '../services/show.service';
|
||||
import {FormControl, FormGroup, Validators} from '@angular/forms';
|
||||
import {Router} from '@angular/router';
|
||||
import {faSave} from '@fortawesome/free-solid-svg-icons/faSave';
|
||||
import {faSave} from '@fortawesome/free-solid-svg-icons';
|
||||
|
||||
@Component({
|
||||
selector: 'app-new',
|
||||
@@ -36,7 +36,7 @@ export class NewComponent implements OnInit {
|
||||
return;
|
||||
}
|
||||
|
||||
const id = await this.showService.new$(this.form.value);
|
||||
const id = await this.showService.new$(this.form.value as Partial<Show>);
|
||||
await this.router.navigateByUrl(`/shows/${id ?? ''}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user