diff --git a/front/src/components/requests/Card.vue b/front/src/components/requests/Card.vue new file mode 100644 index 000000000..deb9c3fe0 --- /dev/null +++ b/front/src/components/requests/Card.vue @@ -0,0 +1,61 @@ + + + + {{ request.artist_name }} + + + + + + + + + + + + + {{ request.status | capitalize }} + + Create import + + + + + + + + + diff --git a/front/src/components/requests/RequestsList.vue b/front/src/components/requests/RequestsList.vue new file mode 100644 index 000000000..cb3e9af00 --- /dev/null +++ b/front/src/components/requests/RequestsList.vue @@ -0,0 +1,163 @@ + + + + Music requests + + + + Search + + + + Ordering + + + {{ option[1] }} + + + + + Ordering direction + + Ascending + Descending + + + + Results per page + + 12 + 25 + 50 + + + + + + + + + + + + + + + + + + + + + diff --git a/front/src/router/index.js b/front/src/router/index.js index bf59b8ee8..ea8854bbe 100644 --- a/front/src/router/index.js +++ b/front/src/router/index.js @@ -17,6 +17,7 @@ import LibraryRadios from '@/components/library/Radios' 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 Favorites from '@/components/favorites/List' @@ -100,6 +101,7 @@ export default new Router({ component: LibraryImport, props: (route) => ({ source: route.query.source, + request: route.query.request, mbType: route.query.type, mbId: route.query.id }) }, @@ -110,7 +112,21 @@ export default new Router({ children: [ ] }, - { path: 'import/batches/:id', name: 'library.import.batches.detail', component: BatchDetail, props: true } + { path: 'import/batches/:id', name: 'library.import.batches.detail', component: BatchDetail, props: true }, + { + path: 'requests/', + name: 'library.requests', + component: RequestsList, + props: (route) => ({ + defaultOrdering: route.query.ordering, + defaultQuery: route.query.query, + defaultPaginateBy: route.query.paginateBy, + defaultPage: route.query.page, + defaultStatus: route.query.status || 'pending' + }), + children: [ + ] + } ] }, { path: '*', component: PageNotFound }