From b1511ce926bdcb79dac3845dc1320ddad7b645f4 Mon Sep 17 00:00:00 2001 From: Mateus Machado Luna Date: Thu, 10 Oct 2019 12:03:17 -0300 Subject: [PATCH] Several updates on tagslist logic. --- .../components/search/filters-tags-list.vue | 38 ++++++++++------- .../autocomplete/Autocomplete.vue | 7 ++-- .../filter-types/checkbox/Checkbox.vue | 2 +- .../custom-interval/CustomInterval.vue | 10 ++++- src/classes/filter-types/date/Date.vue | 10 ++++- .../filter-types/filter-types-mixin.js | 18 ++------ .../numeric-interval/NumericInterval.vue | 4 +- .../NumericListInterval.vue | 4 +- src/classes/filter-types/numeric/Numeric.vue | 4 +- .../filter-types/selectbox/Selectbox.vue | 2 +- .../filter-types/tainacan-filter-item.vue | 28 ++++++++++--- .../filter-types/taxonomy/Checkbox.vue | 2 +- .../filter-types/taxonomy/Taginput.vue | 4 +- src/js/event-bus-search.js | 41 ++++++++++++------- src/js/store/modules/search/actions.js | 4 ++ src/js/store/modules/search/mutations.js | 20 +++++++-- 16 files changed, 125 insertions(+), 73 deletions(-) diff --git a/src/admin/components/search/filters-tags-list.vue b/src/admin/components/search/filters-tags-list.vue index c3cd5759a..426c98cc5 100644 --- a/src/admin/components/search/filters-tags-list.vue +++ b/src/admin/components/search/filters-tags-list.vue @@ -7,8 +7,8 @@ :key="index" attached closable - @close="removeMetaQuery(filterTag.filterId, filterTag.value, filterTag.singleValue)"> - {{ filterTag.singleValue != undefined ? filterTag.singleValue : filterTag.value }} + @close="removeMetaQuery(filterTag)"> + {{ filterTag.singleLabel != undefined ? filterTag.singleLabel : filterTag.label }}