implement album sort

This commit is contained in:
Thomas Amland
2020-08-21 19:19:30 +02:00
parent 81102a9fa5
commit c6cfbdf131
4 changed files with 68 additions and 13 deletions
+10 -1
View File
@@ -42,7 +42,16 @@ export function setupRouter(auth: AuthService) {
{
name: 'albums',
path: '/albums',
component: AlbumLibrary
redirect: {
name: 'albums-params',
params: { sort: 'a-z' }
}
},
{
name: 'albums-params',
path: '/albums/:sort',
component: AlbumLibrary,
props: true
},
{
name: 'album',