credit
This commit is contained in:
@@ -26,6 +26,15 @@
|
|||||||
<div if="{this.props.Type === 'artist'}">
|
<div if="{this.props.Type === 'artist'}">
|
||||||
{state.release.profile}
|
{state.release.profile}
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -35,6 +44,7 @@
|
|||||||
|
|
||||||
state: {
|
state: {
|
||||||
release: [],
|
release: [],
|
||||||
|
resource: []
|
||||||
},
|
},
|
||||||
|
|
||||||
async onMounted() {
|
async onMounted() {
|
||||||
@@ -47,8 +57,12 @@
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.state.release = await window.getArtistDetails(id)
|
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()
|
this.update()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user