()
| 529 | } |
| 530 | |
| 531 | showHocProgress () { |
| 532 | const hocClassrooms = this.classrooms.models.find(c => { |
| 533 | return c.get('courses').filter(course => c._id === this.hourOfCodeOptions.courseId) && (c.get('aceConfig').language === this.hocCodeLanguage) |
| 534 | }) || [] |
| 535 | // show showHocProgress if student signed up using the end modal, and there are no relevant classrooms |
| 536 | if ((hocClassrooms.length === 0) && (me.get('hourOfCodeOptions') || {}).showHocProgress) { |
| 537 | return true |
| 538 | } |
| 539 | } |
| 540 | |
| 541 | calculateHocStats () { |
| 542 | const hocCampaignSessions = ((store.getters != null ? store.getters['levelSessions/getSessionsForCampaign'](this.hourOfCodeOptions.campaignId) : undefined) || {}).sessions || [] |
no test coverage detected