Skip to content
Snippets Groups Projects
Commit 2ce2a4c2 authored by jvanboxtel@wisc.edu's avatar jvanboxtel@wisc.edu
Browse files

fix for credits and changing degree plans

parent f5093a5c
No related branches found
No related tags found
No related merge requests found
......@@ -140,6 +140,23 @@ export class NewDegreeAuditDialogComponent implements OnInit {
),
share(),
);
this.variableCreditCourses$.subscribe(courses => {
while (this.chosenCreditSettings.length !== 0) {
this.chosenCreditSettings.removeAt(0);
}
courses.forEach(course => {
this.chosenCreditSettings.push(
this.fb.group({
course,
credits: this.fb.control(
course.credits || '',
Validators.required,
),
}),
);
});
});
});
if (includeCoursesFrom) {
includeCoursesFrom.valueChanges.subscribe(selected => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment