Fix #551: Added a library widget to display libraries associated with a track, album and artist

This commit is contained in:
Eliot Berriot 2018-10-02 19:30:13 +02:00
parent f2812c67ce
commit a865fcdcf1
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
9 changed files with 210 additions and 10 deletions

View file

@ -45,6 +45,14 @@
</h2>
<track-table v-if="album" :artist="album.artist" :display-position="true" :tracks="album.tracks"></track-table>
</div>
<div class="ui vertical stripe segment">
<h2>
<translate>User libraries</translate>
</h2>
<library-widget :url="'albums/' + id + '/libraries/'">
<translate slot="subtitle">This album is present in the following libraries:</translate>
</library-widget>
</div>
</template>
</div>
</template>
@ -55,6 +63,7 @@ import logger from '@/logging'
import backend from '@/audio/backend'
import PlayButton from '@/components/audio/PlayButton'
import TrackTable from '@/components/audio/track/Table'
import LibraryWidget from '@/components/federation/LibraryWidget'
const FETCH_URL = 'albums/'
@ -62,7 +71,8 @@ export default {
props: ['id'],
components: {
PlayButton,
TrackTable
TrackTable,
LibraryWidget
},
data () {
return {