credit
This commit is contained in:
@@ -26,6 +26,15 @@
|
||||
<div if="{this.props.Type === 'artist'}">
|
||||
{state.release.profile}
|
||||
</div>
|
||||
<!-- Liste des extra-artists avec liens -->
|
||||
<div if="{state.extraArtists.length}">
|
||||
<b>Crédits :</b>
|
||||
<ul>
|
||||
<li each="{artist in state.extraArtists}">
|
||||
<a href="{#/release-details/artist/" + item.id + "}" target="_blank">{artist.name} - {artist.role}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -35,6 +44,7 @@
|
||||
|
||||
state: {
|
||||
release: [],
|
||||
resource: []
|
||||
},
|
||||
|
||||
async onMounted() {
|
||||
@@ -47,8 +57,12 @@
|
||||
}
|
||||
else{
|
||||
this.state.release = await window.getArtistDetails(id)
|
||||
|
||||
// Récupérer les extra-artists depuis leur URL
|
||||
const response = await fetch(artist.resource_url);
|
||||
this.state.resource = response.json();
|
||||
this.update();
|
||||
}
|
||||
console.log("resultat", this.state.release)
|
||||
|
||||
this.update()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user