forked from dbroqua/MusicTopus
#76 - Avoir plus de détails sur le support physique sur la modale d'ajout
This commit is contained in:
parent
dff1d2baf0
commit
8822056c1f
3 changed files with 37 additions and 8 deletions
|
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue