({ state, dispatch }, options = {})
| 354 | // Single class progress page |
| 355 | // options.data = { users: '', levelSessions: '' } -> properties needed for these objects, i.e. will be used as `project` in db queries |
| 356 | async fetchDataSingleClass ({ state, dispatch }, options = {}) { |
| 357 | const fetchPromises = [] |
| 358 | |
| 359 | fetchPromises.push(dispatch('courseInstances/fetchCourseInstancesForClassroom', state.classroomId, { root: true })) |
| 360 | fetchPromises.push(dispatch('courses/fetchReleased', undefined, { root: true })) |
| 361 | |
| 362 | if (utils.isCodeCombat) { |
| 363 | options.fetchInteractiveSessions = me.showOzCourses() |
| 364 | } else { |
| 365 | options.fetchInteractiveSessions = true |
| 366 | } |
| 367 | fetchPromises.push(dispatch('teacherDashboard/fetchClassroomData', options, { root: true })) |
| 368 | |
| 369 | await Promise.all(fetchPromises) |
| 370 | }, |
| 371 | |
| 372 | // Single class progress page - without blocking loading indicator |
| 373 | async fetchDataSingleClassAsync ({ state, dispatch, getters }, options = {}) { |
nothing calls this directly
no test coverage detected