diff --git a/front/src/components/playlists/Editor.vue b/front/src/components/playlists/Editor.vue new file mode 100644 index 000000000..6f9ddfcd4 --- /dev/null +++ b/front/src/components/playlists/Editor.vue @@ -0,0 +1,149 @@ + + + Playlist editor + Drag and drop rows to reorder tracks in the playlist + + Insert from queue ({{ queueTracks.length }} tracks) + + Status + + + + Syncing changes to server... + + + + An error occured while saving your changes + + + {{ error }} + + + + + Changes synced with server + + + + + + {{ plt.index + 1}} + + + + + + {{ plt.track.title }} + {{ plt.track.artist.name }} + + + + + + + + + + + + + + diff --git a/front/src/router/index.js b/front/src/router/index.js index ba9aadd98..31bd0805c 100644 --- a/front/src/router/index.js +++ b/front/src/router/index.js @@ -21,7 +21,7 @@ import RadioBuilder from '@/components/library/radios/Builder' import BatchList from '@/components/library/import/BatchList' import BatchDetail from '@/components/library/import/BatchDetail' import RequestsList from '@/components/requests/RequestsList' - +import PlaylistDetail from '@/views/playlists/Detail' import Favorites from '@/components/favorites/List' Vue.use(Router) @@ -110,6 +110,7 @@ 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: '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 }, diff --git a/front/src/views/playlists/Detail.vue b/front/src/views/playlists/Detail.vue new file mode 100644 index 000000000..fc27b7126 --- /dev/null +++ b/front/src/views/playlists/Detail.vue @@ -0,0 +1,88 @@ + + + + + + + + {{ playlist.name }} + + Playlist containing {{ playlistTracks.length }} tracks, + by + + + + + + Play all + + + End edition + Edit... + + + + + + + + + Tracks + + + + + +
Drag and drop rows to reorder tracks in the playlist