({ state, dispatch }, options = {})
| 241 | |
| 242 | // SchoolAdmin licenses page |
| 243 | async fetchDataMyLicenses ({ state, dispatch }, options = {}) { |
| 244 | const fetchPromises = [] |
| 245 | fetchPromises.push(dispatch('prepaids/fetchPrepaidsForTeacher', { teacherId: state.schoolAdminId }, { root: true })) |
| 246 | fetchPromises.push(dispatch('fetchDataAdministratedTeachers', options)) // needed for classroom-membership-history |
| 247 | |
| 248 | await Promise.all(fetchPromises) |
| 249 | |
| 250 | // fetch async (doesnt block loading) |
| 251 | dispatch('fetchDataMyLicensesAsync', options) |
| 252 | }, |
| 253 | |
| 254 | // SchoolAdmin licenses page async - without blocking loading indicator |
| 255 | async fetchDataMyLicensesAsync ({ state, dispatch, getters }, options = {}) { |
nothing calls this directly
no test coverage detected