This commit is contained in:
lesion 2023-01-09 17:11:06 +01:00
parent 5e6c5993ef
commit 550e221f4a
No known key found for this signature in database
GPG key ID: 352918250B012177
2 changed files with 3 additions and 3 deletions

View file

@ -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",

View file

@ -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')