diff --git a/front/src/components/library/Library.vue b/front/src/components/library/Library.vue index c20922127..161d4519b 100644 --- a/front/src/components/library/Library.vue +++ b/front/src/components/library/Library.vue @@ -4,6 +4,7 @@ Browse Artists Radios + Playlists +
+ + +
- diff --git a/front/src/router/index.js b/front/src/router/index.js index 7cffb6f99..802844461 100644 --- a/front/src/router/index.js +++ b/front/src/router/index.js @@ -22,6 +22,7 @@ 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 PlaylistList from '@/views/playlists/List' import Favorites from '@/components/favorites/List' Vue.use(Router) @@ -110,6 +111,17 @@ 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/', + name: 'library.playlists.browse', + component: PlaylistList, + props: (route) => ({ + defaultOrdering: route.query.ordering, + defaultQuery: route.query.query, + defaultPaginateBy: route.query.paginateBy, + defaultPage: route.query.page + }) + }, { path: 'playlists/:id', name: 'library.playlists.detail', diff --git a/front/src/views/playlists/Detail.vue b/front/src/views/playlists/Detail.vue index 1f3caa494..52c38b618 100644 --- a/front/src/views/playlists/Detail.vue +++ b/front/src/views/playlists/Detail.vue @@ -34,7 +34,7 @@ -
+
diff --git a/front/src/views/playlists/List.vue b/front/src/views/playlists/List.vue new file mode 100644 index 000000000..fc5dcbe54 --- /dev/null +++ b/front/src/views/playlists/List.vue @@ -0,0 +1,158 @@ + + + + + +