diff --git a/nuxt/components/book-recommendations/BookRecommendationTable.vue b/nuxt/components/book-recommendations/BookRecommendationTable.vue index 969fda1..11d5a7c 100644 --- a/nuxt/components/book-recommendations/BookRecommendationTable.vue +++ b/nuxt/components/book-recommendations/BookRecommendationTable.vue @@ -19,6 +19,10 @@ const columns = [ key: 'author', label: 'Autor', }, + { + key: 'published_at', + label: 'Erstveröffentlichung', + }, { key: 'description', label: 'Beschreibung', @@ -42,27 +46,46 @@ const columns = [ { key: 'votes', label: 'Votes', + sortable: true, }, { key: 'actions', label: '', }, ] +const sort = ref({ + column: 'votes', + direction: 'desc', +}) + +function resolveStatus(status: string) { + return bookRecommendationStore.statusOptions.find(option => option.value === status) +}