Skip to content
Snippets Groups Projects
Commit 212363b4 authored by Bat's avatar Bat
Browse files

Fix i18n in data()

parent b62dc488
No related branches found
No related tags found
No related merge requests found
......@@ -32,21 +32,7 @@ export default {
data: function () {
return {
currentType: this.mbType || 'artist',
currentId: this.mbId || '',
types: [
{
value: 'artist',
label: this.$t('Artist')
},
{
value: 'release',
label: this.$t('Album')
},
{
value: 'recording',
label: this.$t('Track')
}
]
currentId: this.mbId || ''
}
},
......@@ -132,6 +118,22 @@ export default {
},
searchUrl: function () {
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: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment