Fix filtering on channels and playlists
This commit is contained in:
parent
71029c7955
commit
040d86cc8d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue