[web] Fix for composers not being displayed in the search results when switching from a Spotify to library search

This commit is contained in:
Alain Nussbaumer 2024-03-24 10:02:18 +01:00
parent 1d426f78a6
commit 979f0c2a33
1 changed files with 11 additions and 13 deletions

View File

@ -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
}
} }
}, },