diff --git a/components/Search.vue b/components/Search.vue
index 7c1adcb2..0216f44c 100644
--- a/components/Search.vue
+++ b/components/Search.vue
@@ -1,33 +1,35 @@
- div.ml-2.mt-1.text-center
+ el-main
//- el-switch.mb-1(v-if='$auth.loggedIn'
//- active-text='solo miei'
//- inactive-text='tutti'
//- inactive-color='lightgreen'
//- v-model='onlyMine'
//- )
- el-switch.mt-1.mb-1.ml-2.d-block(
+ el-switch.mt-1.mb-2.ml-2(
v-if='recurrentFilter && settings.allow_recurrent_event'
- inactive-text=''
- :active-text="$t('event.recurrent_event_too')"
- inactive-color='lightgreen'
+ :active-text="$t('event.show_recurrent')"
v-model='showRecurrent'
)
- el-switch.mt-1.mb-1.ml-2.d-block(
+ el-switch.mt-1.mb-2.ml-2(
v-if='pastFilter'
- :inactive-text="$t('event.only_future')"
- :active-text="$t('event.past_too')"
- inactive-color='lightgreen'
+ :active-text="$t('event.show_past')"
v-model='showPast'
)
- client-only
- el-select.search(v-model='filter'
- multiple
- filterable collapse-tags default-first-option
- :placeholder='$t("common.search")')
- el-option(v-for='(keyword, id) in keywords' :key='keyword.value'
- :label='keyword.label' :value='keyword.value')
+ el-autocomplete.mb-1#search.inline-input(placeholder='Cerca' prefix-icon='el-icon-search'
+ highlight-first-item
+ v-model='search' :debounce='200'
+ :fetch-suggestions='querySearch' clearable
+ @select='addFilter')
+ template(slot-scope='{ item }')
+ span.float-left {{ item.label }}
+ i.float-right.el-icon-place(v-if='item.type==="place"')
+ i.float-right.el-icon-collection-tag(v-if='item.type==="tag"')
+ br
+ el-tag.mr-1(type='success' v-for='f in filter'
+ disable-transitions closable :key='f.type + f.id'
+ @close='removeFilter(f)') {{f.label}}
+