mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 05:34:58 -05:00
[web-src] Only filter albums/artists if "hide singles" is enabled
This commit is contained in:
@@ -65,7 +65,10 @@ export default {
|
||||
},
|
||||
|
||||
albums_filtered () {
|
||||
return this.albums.items.filter(album => !this.hide_singles || album.track_count > 2)
|
||||
if (this.hide_singles) {
|
||||
return this.albums.items.filter(album => album.track_count > 2)
|
||||
}
|
||||
return this.albums.items
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -67,7 +67,10 @@ export default {
|
||||
},
|
||||
|
||||
artists_filtered () {
|
||||
return this.artists.items.filter(artist => !this.hide_singles || artist.track_count > (artist.album_count * 2))
|
||||
if (this.hide_singles) {
|
||||
return this.artists.items.filter(artist => artist.track_count > (artist.album_count * 2))
|
||||
}
|
||||
return this.artists.items
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user