file detail edit server sync

This commit is contained in:
Benjamin Ifland
2019-03-28 15:47:53 +01:00
parent cccdfb4a44
commit 127adea235
5 changed files with 78 additions and 27 deletions

View File

@@ -43,12 +43,12 @@ export class TableComponent {
}
public onClick(id: number): void {
this.songsService.selectSong(id);
this.songsService.selectSong(id).subscribe();
this.change.detectChanges();
}
public onClickNew(): void {
this.songsService.selectSong(null);
this.songsService.selectSong(null).subscribe();
this.songsService.state = State.new;
this.change.detectChanges();
}