move recently added to top
This commit is contained in:
parent
e64a6c8495
commit
24ed0d9ea9
@ -31,8 +31,8 @@
|
|||||||
computed: {
|
computed: {
|
||||||
sections(): any[] {
|
sections(): any[] {
|
||||||
return [
|
return [
|
||||||
{ name: 'Recently played', key: 'recent' },
|
|
||||||
{ name: 'Recently added', key: 'newest' },
|
{ name: 'Recently added', key: 'newest' },
|
||||||
|
{ name: 'Recently played', key: 'recent' },
|
||||||
{ name: 'Most played', key: 'frequent' },
|
{ name: 'Most played', key: 'frequent' },
|
||||||
{ name: 'Random', key: 'random' },
|
{ name: 'Random', key: 'random' },
|
||||||
]
|
]
|
||||||
@ -40,12 +40,12 @@
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
const size = 10
|
const size = 10
|
||||||
this.$api.getAlbums('recent', size).then(result => {
|
|
||||||
this.recent = result
|
|
||||||
this.loading = false
|
|
||||||
})
|
|
||||||
this.$api.getAlbums('newest', size).then(result => {
|
this.$api.getAlbums('newest', size).then(result => {
|
||||||
this.newest = result
|
this.newest = result
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
this.$api.getAlbums('recent', size).then(result => {
|
||||||
|
this.recent = result
|
||||||
})
|
})
|
||||||
this.$api.getAlbums('frequent', size).then(result => {
|
this.$api.getAlbums('frequent', size).then(result => {
|
||||||
this.frequent = result
|
this.frequent = result
|
||||||
|
Loading…
x
Reference in New Issue
Block a user