major on recurrent events

This commit is contained in:
lesion
2019-07-23 01:31:43 +02:00
parent beab52d349
commit f9e0883eaf
19 changed files with 210 additions and 76 deletions

View File

@@ -1,7 +1,5 @@
import moment from 'dayjs'
import intersection from 'lodash/intersection'
import map from 'lodash/map'
import filter from 'lodash/filter'
import find from 'lodash/find'
export const state = () => ({
@@ -147,10 +145,8 @@ export const actions = {
commit('setSettings', settings)
// apply settings
commit('showRecurrentEvents', settings.recurrent_event_visible)
commit('showRecurrentEvents', settings.allow_recurrent_event && settings.recurrent_event_visible)
const lang = req.acceptsLanguages('en', 'it')
commit('setLocale', lang || 'it')
},
async updateEvents({ commit }, page) {
const events = await this.$axios.$get(`/event/${page.month - 1}/${page.year}`)