mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
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",
|
||||
"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",
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue