mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-02 17:36:00 -05:00
96c9424575
Remove the last 8 weeks as this in my case resulted in an empty list. Furthermore, increase limit to get more entries in the list.
53 lines
1.2 KiB
Vue
53 lines
1.2 KiB
Vue
<template>
|
|
<div>
|
|
<tabs-music></tabs-music>
|
|
|
|
<content-with-heading>
|
|
<template slot="heading-left">
|
|
<p class="title is-4">Recently added</p>
|
|
<p class="heading">albums</p>
|
|
</template>
|
|
<template slot="content">
|
|
<list-albums :albums="recently_added.items"></list-albums>
|
|
</template>
|
|
</content-with-heading>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { LoadDataBeforeEnterMixin } from './mixin'
|
|
import ContentWithHeading from '@/templates/ContentWithHeading'
|
|
import TabsMusic from '@/components/TabsMusic'
|
|
import ListAlbums from '@/components/ListAlbums'
|
|
import webapi from '@/webapi'
|
|
|
|
const browseData = {
|
|
load: function (to) {
|
|
return webapi.search({
|
|
type: 'album',
|
|
expression: 'media_kind is music having track_count > 3 order by time_added desc',
|
|
limit: 500
|
|
})
|
|
},
|
|
|
|
set: function (vm, response) {
|
|
vm.recently_added = response.data.albums
|
|
}
|
|
}
|
|
|
|
export default {
|
|
name: 'PageBrowseType',
|
|
mixins: [LoadDataBeforeEnterMixin(browseData)],
|
|
components: { ContentWithHeading, TabsMusic, ListAlbums },
|
|
|
|
data () {
|
|
return {
|
|
recently_added: {}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
</style>
|