Fix i18n in data()

merge-requests/154/head
Bat 2018-04-18 18:36:50 +01:00
rodzic b62dc48896
commit 212363b4bf
1 zmienionych plików z 17 dodań i 15 usunięć

Wyświetl plik

@ -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: {