edit and update data

This commit is contained in:
2019-11-28 22:25:52 +01:00
committed by smuddy
parent 6de7de7224
commit 8aeffc3c8f
31 changed files with 341 additions and 50 deletions

View File

@@ -8,10 +8,22 @@ import {SongDataService} from './song-data.service';
})
export class SongService {
public TYPES = ['Praise', 'Worship'];
public KEYS = [
'C', 'C#', 'Db', 'D', 'D#', 'Eb', 'E', 'F', 'F#', 'Gb', 'G', 'G#', 'Ab', 'A', 'A#', 'B', 'H',
'c', 'c#', 'db', 'd', 'd#', 'eb', 'e', 'f', 'f#', 'gb', 'g', 'g#', 'ab', 'a', 'a#', 'b', 'h'
];
constructor(private songDataService: SongDataService) {
}
public list$ = (): Observable<Song[]> => this.songDataService.list();
public read = (songId: string): Observable<Song | undefined> => this.songDataService.read(songId);
public async update(songId: string, data: any): Promise<void> {
await this.songDataService.update(songId, data);
}
}