diff --git a/front/src/components/metadata/ArtistCard.vue b/front/src/components/metadata/ArtistCard.vue
index 3a50a3155..c88438c0c 100644
--- a/front/src/components/metadata/ArtistCard.vue
+++ b/front/src/components/metadata/ArtistCard.vue
@@ -16,7 +16,7 @@
{{ group['first-release-date'] }}
-
+
@@ -32,21 +32,7 @@ export default {
data: function () {
return {
currentType: this.mbType || 'artist',
- currentId: this.mbId || '',
- types: [
- {
- value: 'artist',
- label: 'Artist'
- },
- {
- value: 'release',
- label: 'Album'
- },
- {
- value: 'recording',
- label: '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: {