mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-31 01:33:44 -04:00
[web-src] Only filter albums/artists if "hide singles" is enabled
This commit is contained in:
parent
d29f56f3eb
commit
f4f80f3508
@ -65,7 +65,10 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
albums_filtered () {
|
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 () {
|
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
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user