({ dispatch })
| 118 | commit('openPanel', { type, date }) |
| 119 | }, |
| 120 | async fetchAllEvents ({ dispatch }) { |
| 121 | const events = await getAllEvents() |
| 122 | |
| 123 | const eventsInstances = await fetchInstancesForEvents(events) |
| 124 | dispatch('setEventsInstances', { events, eventsInstances }) |
| 125 | }, |
| 126 | async fetchUserEvents ({ dispatch }, uId) { |
| 127 | const events = await getEventsByUser(uId) |
| 128 | const eventsInstances = await fetchInstancesForEvents(events) |
nothing calls this directly
no test coverage detected