#76 - Avoir plus de détails sur le support physique sur la modale d'ajout

This commit is contained in:
Damien Broqua 2023-01-17 16:54:58 +01:00
parent dff1d2baf0
commit 8822056c1f
3 changed files with 37 additions and 8 deletions

View file

@ -38,14 +38,21 @@ if (typeof item !== "undefined") {
}
},
setTrackList() {
this.tracklist = [];
let subTrack = {
type: null,
title: null,
tracks: [],
};
for (let i = 0; i < this.item.tracklist.length; i += 1) {
const { type_, title, position, duration, extraartists } =
this.item.tracklist[i];
const {
type_,
title,
position,
duration,
artists,
extraartists,
} = this.item.tracklist[i];
if (type_ === "heading") {
if (subTrack.type) {
@ -65,6 +72,7 @@ if (typeof item !== "undefined") {
position,
duration,
extraartists,
artists,
});
}
}