mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-22 11:35:43 -04:00
[web] Align naming in search pages
This commit is contained in:
parent
a6b2f93f41
commit
17c6454afa
@ -32,7 +32,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<tabs-search :query="search_query" />
|
<tabs-search :query="search_query" />
|
||||||
<template v-for="type in validSearchTypes" :key="type">
|
<template v-for="type in search_types" :key="type">
|
||||||
<content-with-heading v-if="show(type)" class="pt-0">
|
<content-with-heading v-if="show(type)" class="pt-0">
|
||||||
<template #heading-left>
|
<template #heading-left>
|
||||||
<p class="title is-4" v-text="$t(`page.spotify.search.${type}s`)" />
|
<p class="title is-4" v-text="$t(`page.spotify.search.${type}s`)" />
|
||||||
@ -123,7 +123,7 @@ export default {
|
|||||||
},
|
},
|
||||||
search_param: {},
|
search_param: {},
|
||||||
search_query: '',
|
search_query: '',
|
||||||
validSearchTypes: ['track', 'artist', 'album', 'playlist']
|
search_types: ['track', 'artist', 'album', 'playlist']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -198,7 +198,7 @@ export default {
|
|||||||
search_all() {
|
search_all() {
|
||||||
const types = this.query.type
|
const types = this.query.type
|
||||||
.split(',')
|
.split(',')
|
||||||
.filter((type) => this.validSearchTypes.includes(type))
|
.filter((type) => this.search_types.includes(type))
|
||||||
this.spotify_search(types).then((data) => {
|
this.spotify_search(types).then((data) => {
|
||||||
this.results.track = data.tracks ?? { items: [], total: 0 }
|
this.results.track = data.tracks ?? { items: [], total: 0 }
|
||||||
this.results.artist = data.artists ?? { items: [], total: 0 }
|
this.results.artist = data.artists ?? { items: [], total: 0 }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user