[web-src] handle 'context_uri' that have no direct db entries, such as smartpl generated 'all tracks' or 'all genre tracks'

This commit is contained in:
whatdoineed2do/Ray 2018-12-03 18:42:59 +00:00 committed by chme
parent 69c73e249d
commit df2b422a0c
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
</template>
<template slot="content">
<p class="heading has-text-centered-mobile"><a class="has-text-link" @click="open_genre">albums</a> | tracks</p>
<list-item-track v-for="(track, index) in tracks.items" :key="track.id" :track="track" :position="index" :context_uri="track.uri" :links="links"></list-item-track>
<list-item-track v-for="(track, index) in tracks.items" :key="track.id" :track="track" :position="index" :context_uri="tracks.items.map(a => a.uri).join(',')" :links="links"></list-item-track>
</template>
</content-with-heading>
</div>

View File

@ -11,7 +11,7 @@
</template>
<template slot="content">
<p class="heading has-text-centered-mobile"><a class="has-text-link" @click="open_artist">{{ artist.album_count }} albums</a> | {{ artist.track_count }} tracks</p>
<list-item-track v-for="(track, index) in tracks.items" :key="track.id" :track="track" :position="index" :context_uri="track.uri"></list-item-track>
<list-item-track v-for="(track, index) in tracks.items" :key="track.id" :track="track" :position="index" :context_uri="tracks.items.map(a => a.uri).join(',')"></list-item-track>
</template>
</content-with-heading>
</div>