({ state, dispatch, rootGetters }, options = {})
| 315 | // My classes page |
| 316 | // options.data = { levelSessions: '' } -> properties needed for these objects, i.e. will be used as `project` in db queries |
| 317 | async fetchDataAllClasses ({ state, dispatch, rootGetters }, options = {}) { |
| 318 | const fetchPromises = [] |
| 319 | |
| 320 | fetchPromises.push(dispatch('courseInstances/fetchCourseInstancesForTeacher', state.teacherId, { root: true })) |
| 321 | fetchPromises.push(dispatch('courses/fetchReleased', undefined, { root: true })) |
| 322 | |
| 323 | await Promise.all(fetchPromises) |
| 324 | }, |
| 325 | |
| 326 | // My classes page - without blocking loading indicator |
| 327 | async fetchDataAllClassesAsync ({ state, dispatch, rootGetters }, options = {}) { |
nothing calls this directly
no test coverage detected