diff --git a/front/src/components/Sidebar.vue b/front/src/components/Sidebar.vue
index 179ffedd7..f225313b6 100644
--- a/front/src/components/Sidebar.vue
+++ b/front/src/components/Sidebar.vue
@@ -36,6 +36,12 @@
Login
Browse library
Favorites
+
+ Playlists
+
Activity
diff --git a/front/src/components/library/Track.vue b/front/src/components/library/Track.vue
index a40409615..0437ac881 100644
--- a/front/src/components/library/Track.vue
+++ b/front/src/components/library/Track.vue
@@ -24,6 +24,11 @@
Play
+
+
Search on wikipedia
@@ -66,6 +71,7 @@ import logger from '@/logging'
import backend from '@/audio/backend'
import PlayButton from '@/components/audio/PlayButton'
import TrackFavoriteIcon from '@/components/favorites/TrackFavoriteIcon'
+import TrackPlaylistIcon from '@/components/playlists/TrackPlaylistIcon'
const FETCH_URL = 'tracks/'
@@ -73,6 +79,7 @@ export default {
props: ['id'],
components: {
PlayButton,
+ TrackPlaylistIcon,
TrackFavoriteIcon
},
data () {
diff --git a/front/src/router/index.js b/front/src/router/index.js
index 31bd0805c..7cffb6f99 100644
--- a/front/src/router/index.js
+++ b/front/src/router/index.js
@@ -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 },