diff --git a/locales/it.json b/locales/it.json index a8daeca3..2776497a 100644 --- a/locales/it.json +++ b/locales/it.json @@ -147,6 +147,7 @@ "recurrent": "Ricorrente", "edit_recurrent": "Modifica evento ricorrente:", "show_recurrent": "appuntamenti ricorrenti", + "show_multidate": "eventi di piĆ¹ giorni", "show_past": "eventi passati", "recurrent_description": "Scegli la frequenza e seleziona i giorni", "multidate_description": "Un festival o una tre giorni? Scegli quando comincia e quando finisce", diff --git a/pages/index.vue b/pages/index.vue index 33e1dac6..58c44fca 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -65,7 +65,7 @@ export default { computed: { ...mapState(['settings', 'announcements', 'events', 'filter']), visibleEvents () { - if (this.filter.query) { + if (this.filter.query && this.filter.query.length > 2) { return this.tmpEvents } const now = dayjs().unix() @@ -85,14 +85,13 @@ export default { this.$root.$on('monthchange', this.monthChange) this.storeUnsubscribe = this.$store.subscribeAction( { after: (action, state) => { if (action.type === 'setFilter') { - if (this.filter.query) { + if (this.filter.query && this.filter.query.length > 2) { this.search() } else { this.updateEvents() } } }}) - console.error(this.storeUnsubscribe) }, destroyed () { this.$root.$off('dayclick')