AA-377: Add non-passing course exit screen (#246)

- Adds a non-passing cert learner course exit screen
- Moves all the logic about what course-exit mode we're in into
  a utility method in the course-exit folder
- Moves all the logic about how the 'Next' button should read into
  a utility method in the course-exit folder
This commit is contained in:
Michael Terry
2020-10-19 11:00:44 -04:00
committed by GitHub
parent f83a6e574c
commit c5821faee8
14 changed files with 255 additions and 128 deletions

View File

@@ -51,6 +51,11 @@ Factory.define('courseMetadata')
marketing_url: null,
celebrations: null,
enroll_alert: null,
course_exit_page_is_active: true,
user_has_passing_grade: false,
certificate_data: {
cert_status: 'audit_passing',
},
}).attr(
'tabs', ['tabs', 'id'], (passedTabs, id) => {
if (passedTabs) {