minor
This commit is contained in:
parent
5e6c5993ef
commit
550e221f4a
2 changed files with 3 additions and 3 deletions
|
@ -147,6 +147,7 @@
|
||||||
"recurrent": "Ricorrente",
|
"recurrent": "Ricorrente",
|
||||||
"edit_recurrent": "Modifica evento ricorrente:",
|
"edit_recurrent": "Modifica evento ricorrente:",
|
||||||
"show_recurrent": "appuntamenti ricorrenti",
|
"show_recurrent": "appuntamenti ricorrenti",
|
||||||
|
"show_multidate": "eventi di più giorni",
|
||||||
"show_past": "eventi passati",
|
"show_past": "eventi passati",
|
||||||
"recurrent_description": "Scegli la frequenza e seleziona i giorni",
|
"recurrent_description": "Scegli la frequenza e seleziona i giorni",
|
||||||
"multidate_description": "Un festival o una tre giorni? Scegli quando comincia e quando finisce",
|
"multidate_description": "Un festival o una tre giorni? Scegli quando comincia e quando finisce",
|
||||||
|
|
|
@ -65,7 +65,7 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['settings', 'announcements', 'events', 'filter']),
|
...mapState(['settings', 'announcements', 'events', 'filter']),
|
||||||
visibleEvents () {
|
visibleEvents () {
|
||||||
if (this.filter.query) {
|
if (this.filter.query && this.filter.query.length > 2) {
|
||||||
return this.tmpEvents
|
return this.tmpEvents
|
||||||
}
|
}
|
||||||
const now = dayjs().unix()
|
const now = dayjs().unix()
|
||||||
|
@ -85,14 +85,13 @@ export default {
|
||||||
this.$root.$on('monthchange', this.monthChange)
|
this.$root.$on('monthchange', this.monthChange)
|
||||||
this.storeUnsubscribe = this.$store.subscribeAction( { after: (action, state) => {
|
this.storeUnsubscribe = this.$store.subscribeAction( { after: (action, state) => {
|
||||||
if (action.type === 'setFilter') {
|
if (action.type === 'setFilter') {
|
||||||
if (this.filter.query) {
|
if (this.filter.query && this.filter.query.length > 2) {
|
||||||
this.search()
|
this.search()
|
||||||
} else {
|
} else {
|
||||||
this.updateEvents()
|
this.updateEvents()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}})
|
}})
|
||||||
console.error(this.storeUnsubscribe)
|
|
||||||
},
|
},
|
||||||
destroyed () {
|
destroyed () {
|
||||||
this.$root.$off('dayclick')
|
this.$root.$off('dayclick')
|
||||||
|
|
Loading…
Reference in a new issue