kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Fix #422: Do not display "view on MusicBrainz" button if we miss the mbid
rodzic
a8f7893def
commit
10fff6ea67
|
@ -0,0 +1 @@
|
|||
Do not display "view on MusicBrainz" button if we miss the mbid (#422)
|
|
@ -33,7 +33,7 @@
|
|||
<i class="wikipedia icon"></i>
|
||||
<translate>Search on Wikipedia</translate>
|
||||
</a>
|
||||
<a :href="musicbrainzUrl" target="_blank" class="ui button">
|
||||
<a v-if="musicbrainzUrl" :href="musicbrainzUrl" target="_blank" class="ui button">
|
||||
<i class="external icon"></i>
|
||||
<translate>View on MusicBrainz</translate>
|
||||
</a>
|
||||
|
@ -105,7 +105,9 @@ export default {
|
|||
return 'https://en.wikipedia.org/w/index.php?search=' + encodeURI(this.album.title + ' ' + this.album.artist.name)
|
||||
},
|
||||
musicbrainzUrl () {
|
||||
return 'https://musicbrainz.org/release/' + this.album.mbid
|
||||
if (this.album.mbid) {
|
||||
return 'https://musicbrainz.org/release/' + this.album.mbid
|
||||
}
|
||||
},
|
||||
headerStyle () {
|
||||
if (!this.album.cover.original) {
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
<i class="wikipedia icon"></i>
|
||||
<translate>Search on Wikipedia</translate>
|
||||
</a>
|
||||
<a :href="musicbrainzUrl" target="_blank" class="ui button">
|
||||
<a v-if="musicbrainzUrl" :href="musicbrainzUrl" target="_blank" class="ui button">
|
||||
<i class="external icon"></i>
|
||||
<translate>View on MusicBrainz</translate>
|
||||
</a>
|
||||
|
@ -154,7 +154,9 @@ export default {
|
|||
return 'https://en.wikipedia.org/w/index.php?search=' + encodeURI(this.artist.name)
|
||||
},
|
||||
musicbrainzUrl () {
|
||||
return 'https://musicbrainz.org/artist/' + this.artist.mbid
|
||||
if (this.artist.mbid) {
|
||||
return 'https://musicbrainz.org/artist/' + this.artist.mbid
|
||||
}
|
||||
},
|
||||
allTracks () {
|
||||
let tracks = []
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
<i class="wikipedia icon"></i>
|
||||
<translate>Search on Wikipedia</translate>
|
||||
</a>
|
||||
<a :href="musicbrainzUrl" target="_blank" class="ui button">
|
||||
<a v-if="musicbrainzUrl" :href="musicbrainzUrl" target="_blank" class="ui button">
|
||||
<i class="external icon"></i>
|
||||
<translate>View on MusicBrainz</translate>
|
||||
</a>
|
||||
|
@ -199,7 +199,9 @@ export default {
|
|||
return 'https://en.wikipedia.org/w/index.php?search=' + encodeURI(this.track.title + ' ' + this.track.artist.name)
|
||||
},
|
||||
musicbrainzUrl () {
|
||||
return 'https://musicbrainz.org/recording/' + this.track.mbid
|
||||
if (this.track.mbid) {
|
||||
return 'https://musicbrainz.org/recording/' + this.track.mbid
|
||||
}
|
||||
},
|
||||
downloadUrl () {
|
||||
let u = this.$store.getters['instance/absoluteUrl'](this.track.listen_url)
|
||||
|
|
Ładowanie…
Reference in New Issue