FIX: enable play button for EPs and Singles on artist page
This commit is contained in:
parent
9a1ef9d0ef
commit
70a29bdf9b
1 changed files with 8 additions and 0 deletions
8
js/ui.js
8
js/ui.js
|
|
@ -1925,6 +1925,14 @@ export class UIRenderer {
|
||||||
if (artist.eps && artist.eps.length > 0) {
|
if (artist.eps && artist.eps.length > 0) {
|
||||||
epsContainer.innerHTML = artist.eps.map((album) => this.createAlbumCardHTML(album)).join('');
|
epsContainer.innerHTML = artist.eps.map((album) => this.createAlbumCardHTML(album)).join('');
|
||||||
epsSection.style.display = 'block';
|
epsSection.style.display = 'block';
|
||||||
|
|
||||||
|
artist.eps.forEach((album) => {
|
||||||
|
const el = epsContainer.querySelector(`[data-album-id="${album.id}"]`);
|
||||||
|
if (el) {
|
||||||
|
trackDataStore.set(el, album);
|
||||||
|
this.updateLikeState(el, 'album', album.id);
|
||||||
|
}
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
epsSection.style.display = 'none';
|
epsSection.style.display = 'none';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue