edit song GUI

This commit is contained in:
Benjamin Ifland
2019-03-24 16:33:29 +01:00
parent 915caf23b0
commit a46dae93db
13 changed files with 215 additions and 25 deletions

View File

@@ -8,9 +8,10 @@ import { FormGroup, FormControl, Validators } from '@angular/forms';
})
export class EditSongService {
constructor(private songService: SongsService) { }
constructor(private songsService: SongsService) { }
public initEditForm(song: Song): FormGroup {
public initEditForm(): FormGroup {
const song = this.songsService.selectedSong.value;
const form = new FormGroup({
ID: new FormControl(song.ID),
Number: new FormControl(song.Number),