()
| 224 | getTitle () { return (this.classroom != null ? this.classroom.get('name') : undefined) } |
| 225 | |
| 226 | fetchStudents () { |
| 227 | return Promise.all(this.students.fetchForClassroom(this.classroom, { removeDeleted: true, data: { project: 'firstName,lastName,name,email,products,deleted' } })) |
| 228 | .then(() => { |
| 229 | if (this.destroyed) { return } |
| 230 | this.removeDeletedStudents() // TODO: Move this to mediator listeners? |
| 231 | this.calculateProgressAndLevels() |
| 232 | return (typeof this.debouncedRender === 'function' ? this.debouncedRender() : undefined) |
| 233 | }) |
| 234 | } |
| 235 | |
| 236 | fetchSessions () { |
| 237 | return Promise.all(this.classroom.sessions.fetchForAllClassroomMembers(this.classroom)) |
no test coverage detected