Fix filtering on channels and playlists

This commit is contained in:
Chocobozzz 2022-12-28 14:14:46 +01:00
parent 71029c7955
commit 040d86cc8d
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 11 additions and 2 deletions

View File

@ -472,7 +472,11 @@
isChannelSearchDisabled () {
const { resultType, host } = this.$route.query as SearchUrl
if (resultType !== undefined && resultType !== 'channels') return true
if (resultType !== undefined) {
if (resultType !== 'channels') return true
return false
}
// We can search against host for playlists and channels
if (host) return this.countActiveFilters() > 1
@ -482,7 +486,12 @@
isPlaylistSearchDisabled () {
const { resultType, host } = this.$route.query as SearchUrl
if (resultType !== undefined && resultType !== 'playlists') return true
if (resultType !== undefined) {
if (resultType !== 'playlists') return true
return false
}
// We can search against host for playlists and channels
if (host) return this.countActiveFilters() > 1