diff --git a/components/cards/TagSearchCard.vue b/components/cards/TagSearchCard.vue new file mode 100644 index 00000000..c4068a28 --- /dev/null +++ b/components/cards/TagSearchCard.vue @@ -0,0 +1,34 @@ + + + + + \ No newline at end of file diff --git a/pages/search.vue b/pages/search.vue index 68f888fe..9683b699 100644 --- a/pages/search.vue +++ b/pages/search.vue @@ -54,6 +54,15 @@ + +

Tags

+ @@ -70,7 +79,8 @@ export default { podcastResults: [], seriesResults: [], authorResults: [], - narratorResults: [] + narratorResults: [], + tagResults: [] } }, computed: { @@ -81,7 +91,7 @@ export default { return this.$store.getters['libraries/getBookCoverAspectRatio'] }, totalResults() { - return this.bookResults.length + this.seriesResults.length + this.authorResults.length + this.podcastResults.length + this.narratorResults.length + return this.bookResults.length + this.seriesResults.length + this.authorResults.length + this.podcastResults.length + this.narratorResults.length + this.tagResults.length } }, methods: { @@ -97,6 +107,7 @@ export default { this.seriesResults = [] this.authorResults = [] this.narratorResults = [] + this.tagResults = [] return } this.isFetching = true @@ -117,6 +128,7 @@ export default { this.seriesResults = results?.series || [] this.authorResults = results?.authors || [] this.narratorResults = results?.narrators || [] + this.tagResults = results?.tags || [] }, updateSearch(val) { clearTimeout(this.searchTimeout)