From b07d0d3e9dc86c284d691ea9b01be9398adddb09 Mon Sep 17 00:00:00 2001 From: Flycro Date: Thu, 21 Mar 2024 12:52:55 +0100 Subject: [PATCH] feat: Add Sort to all Columns --- .../book-recommendations/BookRecommendationTable.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nuxt/components/book-recommendations/BookRecommendationTable.vue b/nuxt/components/book-recommendations/BookRecommendationTable.vue index 11d5a7c..016db2c 100644 --- a/nuxt/components/book-recommendations/BookRecommendationTable.vue +++ b/nuxt/components/book-recommendations/BookRecommendationTable.vue @@ -14,14 +14,17 @@ const columns = [ { key: 'book_name', label: 'Name', + sortable: true, }, { key: 'author', label: 'Autor', + sortable: true, }, { key: 'published_at', label: 'Erstveröffentlichung', + sortable: true, }, { key: 'description', @@ -30,18 +33,22 @@ const columns = [ { key: 'pages', label: 'Seiten', + sortable: true, }, { key: 'recommender.name', label: 'Empfohlen von', + sortable: true, }, { key: 'created_at', label: 'Erstellt am', + sortable: true, }, { key: 'status', label: 'Status', + sortable: true, }, { key: 'votes',