list shows for public and own filter

This commit is contained in:
2020-05-03 16:43:45 +02:00
committed by smuddy
parent 38c32adf6a
commit 8619027fdb
8 changed files with 93 additions and 17 deletions

View File

@@ -17,4 +17,12 @@ export class ListComponent {
this.shows$ = showService.list$();
}
public getPublicShows(songs: Show[]): Show[] {
return songs.filter(_ => _.published)
}
public getPrivateSongs(songs: Show[]): Show[] {
return songs.filter(_ => !_.published)
}
}