list shows for public and own filter
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user