Skip to content
Snippets Groups Projects
Commit 7a84a987 authored by Scott Berg's avatar Scott Berg
Browse files

Add subscribes to course API calls.

parent 3c545fb2
No related branches found
No related tags found
No related merge requests found
Pipeline #31067 passed
......@@ -43,7 +43,8 @@ export class FavoritesContainerComponent {
});
// Remove this course from the degree plan
this.dataService.removeCourse(this.degreePlannerDataSvc.getPlanId(), event.item.data.id);
this.dataService.removeCourse(this.degreePlannerDataSvc.getPlanId(), event.item.data.id)
.subscribe();
}
}
}
......@@ -131,7 +131,8 @@ export class TermContainerComponent implements OnInit {
const termCode = newTermCode.substring(3);
});
this.dataService.removeFavoriteCourse(event.item.data.subjectCode, event.item.data.courseId);
this.dataService.removeFavoriteCourse(event.item.data.subjectCode, event.item.data.courseId)
.subscribe();
} else if (event.previousContainer.id !== event.container.id) {
......@@ -139,7 +140,8 @@ export class TermContainerComponent implements OnInit {
previousContainer.data.splice(previousIndex, 1);
// Tell the API this course updated
this.dataService.updateCourseTerm(this.degreePlannerDataSvc.getPlanId(), event.item.data.id, newTermCode);
this.dataService.updateCourseTerm(this.degreePlannerDataSvc.getPlanId(), event.item.data.id, newTermCode)
.subscribe();
}
// Do nothing on drop to same term
}
......
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