Fix i18n in data()
This commit is contained in:
parent
b62dc48896
commit
212363b4bf
|
@ -32,21 +32,7 @@ export default {
|
||||||
data: function () {
|
data: function () {
|
||||||
return {
|
return {
|
||||||
currentType: this.mbType || 'artist',
|
currentType: this.mbType || 'artist',
|
||||||
currentId: this.mbId || '',
|
currentId: this.mbId || ''
|
||||||
types: [
|
|
||||||
{
|
|
||||||
value: 'artist',
|
|
||||||
label: this.$t('Artist')
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 'release',
|
|
||||||
label: this.$t('Album')
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 'recording',
|
|
||||||
label: this.$t('Track')
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -132,6 +118,22 @@ export default {
|
||||||
},
|
},
|
||||||
searchUrl: function () {
|
searchUrl: function () {
|
||||||
return config.API_URL + 'providers/musicbrainz/search/' + this.currentTypeObject.value + 's/?query={query}'
|
return config.API_URL + 'providers/musicbrainz/search/' + this.currentTypeObject.value + 's/?query={query}'
|
||||||
|
},
|
||||||
|
types: function () {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
value: 'artist',
|
||||||
|
label: this.$t('Artist')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 'release',
|
||||||
|
label: this.$t('Album')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 'recording',
|
||||||
|
label: this.$t('Track')
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
Loading…
Reference in New Issue