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 { } } -