Added :index to list items where it was missing
This commit is contained in:
parent
92e7035ff8
commit
12b736baa0
3 changed files with 5 additions and 4 deletions
|
@ -51,7 +51,8 @@
|
|||
</div>
|
||||
</div>
|
||||
<mediaitem-list-item
|
||||
v-for="song in data.views['top-songs'].data.limit(topSongsExpanded ? 10 : 5)"
|
||||
v-for="(song, index) in data.views['top-songs'].data.limit(topSongsExpanded ? 10 : 5)"
|
||||
:index="index"
|
||||
:item="song"></mediaitem-list-item>
|
||||
<button class="showmoreless"
|
||||
@click="topSongsExpanded = !topSongsExpanded">
|
||||
|
|
|
@ -41,6 +41,6 @@
|
|||
</div>
|
||||
</div>
|
||||
<div v-if="library.songs.downloadState == 3">Library contains no songs.</div>
|
||||
<mediaitem-list-item :item="item" :show-meta-data="true" :show-library-status="false" v-for="item in library.songs.displayListing"></mediaitem-list-item>
|
||||
<mediaitem-list-item :item="item" :index="index" :show-meta-data="true" :show-library-status="false" v-for="(item, index) in library.songs.displayListing"></mediaitem-list-item>
|
||||
</div>
|
||||
</template>
|
|
@ -17,8 +17,8 @@
|
|||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<mediaitem-list-item :item="item"
|
||||
v-for="item in search.results.song.data.limit(6)"></mediaitem-list-item>
|
||||
<mediaitem-list-item :item="item" :index="index"
|
||||
v-for="(item, index) in search.results.song.data.limit(6)"></mediaitem-list-item>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue