From f1d7e698c42a148e627f18942f27c6dac0e0d8df Mon Sep 17 00:00:00 2001 From: les Date: Fri, 16 Oct 2020 14:47:32 +0200 Subject: [PATCH] minor --- components/Search.vue | 44 +++++++++---------------------------------- 1 file changed, 9 insertions(+), 35 deletions(-) diff --git a/components/Search.vue b/components/Search.vue index 2b3aec4a..7277f984 100644 --- a/components/Search.vue +++ b/components/Search.vue @@ -12,7 +12,7 @@ v-model='showPast') v-autocomplete.mt-0( - :label='$t("common.filter")' + :label='$t("common.search")' :items='keywords' v-model='filter' :search-input.sync='search' @@ -96,6 +96,14 @@ export default { methods: { ...mapActions(['setSearchPlaces', 'setSearchTags', 'showPastEvents', 'showRecurrentEvents', 'updateEvent']), + remove (item) { + console.error(item) + if (item.type === 'tag') { + this.removeTag(item.id) + } else { + this.removePlace(item.id) + } + }, removeTag (tag) { this.setSearchTags(this.filters.tags.filter(t => t !== tag)) }, @@ -120,37 +128,3 @@ export default { } } -