Resolve "Support browsing a specific library content"

This commit is contained in:
Eliot Berriot 2020-03-04 22:18:28 +01:00
parent ecc3ed3ac3
commit b166182762
47 changed files with 1020 additions and 336 deletions

View file

@ -68,6 +68,7 @@ export default {
iconOnly: {type: Boolean, default: false},
artist: {type: Object, required: false},
album: {type: Object, required: false},
library: {type: Object, required: false},
isPlayable: {type: Boolean, required: false, default: null}
},
data () {
@ -196,6 +197,9 @@ export default {
} else if (self.album) {
let params = {'album': self.album.id, include_channels: 'true', 'ordering': 'disc_number,position'}
self.getTracksPage(1, params, resolve)
} else if (self.library) {
let params = {'library': self.library.uuid, 'ordering': '-creation_date'}
self.getTracksPage(1, params, resolve)
}
})
return getTracks.then((tracks) => {