[web] Fix for composers not being displayed in the search results when switching from a Spotify to library search
This commit is contained in:
parent
1d426f78a6
commit
979f0c2a33
|
@ -41,21 +41,19 @@ export default {
|
||||||
props: { query: { default: '', type: String } },
|
props: { query: { default: '', type: String } },
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
route_query() {
|
||||||
|
if (this.query) {
|
||||||
|
return {
|
||||||
|
limit: 3,
|
||||||
|
offset: 0,
|
||||||
|
query: this.query,
|
||||||
|
type: 'track,artist,album,composer,playlist,audiobook,podcast'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null
|
||||||
|
},
|
||||||
spotify_enabled() {
|
spotify_enabled() {
|
||||||
return this.$store.state.spotify.webapi_token_valid
|
return this.$store.state.spotify.webapi_token_valid
|
||||||
},
|
|
||||||
|
|
||||||
route_query() {
|
|
||||||
if (!this.query) {
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
type: 'track,artist,album,playlist,audiobook,podcast',
|
|
||||||
query: this.query,
|
|
||||||
limit: 3,
|
|
||||||
offset: 0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue