mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 16:39:17 +02:00
See #50: pagination, search and ordering on artist browsing
This commit is contained in:
parent
860b6b1e1f
commit
04c70116c3
8 changed files with 124 additions and 20 deletions
|
@ -54,7 +54,17 @@ export default new Router({
|
|||
component: Library,
|
||||
children: [
|
||||
{ path: '', component: LibraryHome },
|
||||
{ path: 'artists/', name: 'library.artists.browse', component: LibraryArtists },
|
||||
{
|
||||
path: 'artists/',
|
||||
name: 'library.artists.browse',
|
||||
component: LibraryArtists,
|
||||
props: (route) => ({
|
||||
defaultOrdering: route.query.ordering,
|
||||
defaultQuery: route.query.query,
|
||||
defaultPaginateBy: route.query.paginateBy,
|
||||
defaultPage: route.query.page
|
||||
})
|
||||
},
|
||||
{ path: 'artists/:id', name: 'library.artists.detail', component: LibraryArtist, props: true },
|
||||
{ path: 'albums/:id', name: 'library.albums.detail', component: LibraryAlbum, props: true },
|
||||
{ path: 'tracks/:id', name: 'library.tracks.detail', component: LibraryTrack, props: true },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue