mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 06:59:24 +02:00
Resolve "Support browsing a specific library content"
This commit is contained in:
parent
ecc3ed3ac3
commit
b166182762
47 changed files with 1020 additions and 336 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue