From b803afa97383d24b9b514b343733daecb07bb2cd Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Tue, 30 Jun 2020 04:33:47 +0200 Subject: [PATCH] Added selectable tag function for actors. Implemented experimental filtering by tag. --- assets/components/actors/actor.vue | 1 + assets/components/header/filter-bar.vue | 5 ++ assets/components/header/filters.vue | 35 +++++--------- assets/js/actors/actions.js | 53 +++++++++++++++------ assets/js/config/default.js | 26 +++++++++-- docs/associated-tags.sql | 8 ++++ migrations/20190325001339_releases.js | 62 ++++++++++++++++++++----- 7 files changed, 135 insertions(+), 55 deletions(-) diff --git a/assets/components/actors/actor.vue b/assets/components/actors/actor.vue index 5a7d2161..029e643f 100644 --- a/assets/components/actors/actor.vue +++ b/assets/components/actors/actor.vue @@ -301,6 +301,7 @@ :fetch-releases="fetchActor" :items-total="totalCount" :items-per-page="limit" + :available-tags="actor.tags" /> diff --git a/assets/components/header/filter-bar.vue b/assets/components/header/filter-bar.vue index 6c70cfdd..648400d2 100644 --- a/assets/components/header/filter-bar.vue +++ b/assets/components/header/filter-bar.vue @@ -24,6 +24,7 @@ @@ -97,6 +98,10 @@ export default { type: Number, default: 10, }, + availableTags: { + type: Array, + default: () => [], + }, }, computed: { ...mapState({ diff --git a/assets/components/header/filters.vue b/assets/components/header/filters.vue index ce32bb00..27e4e322 100644 --- a/assets/components/header/filters.vue +++ b/assets/components/header/filters.vue @@ -17,12 +17,12 @@
  • - + {{ tag }} + >{{ tag.name }}
@@ -40,19 +40,6 @@