UI Polishing

This commit is contained in:
Eliot Berriot 2018-03-20 23:41:31 +01:00
parent a38f64852f
commit f503466a24
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 21 additions and 1 deletions

View file

@ -110,7 +110,14 @@ export default new Router({
},
{ path: 'radios/build', name: 'library.radios.build', component: RadioBuilder, props: true },
{ path: 'radios/build/:id', name: 'library.radios.edit', component: RadioBuilder, props: true },
{ path: 'playlists/:id', name: 'library.playlists.detail', component: PlaylistDetail, props: true },
{
path: 'playlists/:id',
name: 'library.playlists.detail',
component: PlaylistDetail,
props: (route) => ({
id: route.params.id,
defaultEdit: route.query.mode === 'edit' })
},
{ 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 },