Skip to content
Snippets Groups Projects
Commit a918a541 authored by Isaac Evavold's avatar Isaac Evavold Committed by Isaac Evavold
Browse files

ROENROLL-1374

parent 3323d430
No related branches found
No related tags found
No related merge requests found
......@@ -18,11 +18,11 @@ import {
} from '@app/degree-planner/store/actions/plan.actions';
import {
CourseActionTypes,
RemoveCourseSuccess,
RemoveCourse,
MoveCourseBetweenTerms,
AddCourseSuccess,
RemoveSaveForLaterSuccess,
AddSaveForLaterSuccess,
RemoveSaveForLater,
AddSaveForLater,
} from '@app/degree-planner/store/actions/course.actions';
import {
NoteActionTypes,
......@@ -54,10 +54,10 @@ type SupportedActions =
| WriteNoteSuccess
| DeleteNoteSuccess
| MoveCourseBetweenTerms
| RemoveCourseSuccess
| RemoveCourse
| AddCourseSuccess
| RemoveSaveForLaterSuccess
| AddSaveForLaterSuccess
| RemoveSaveForLater
| AddSaveForLater
| AddAcademicYearRequest
| CreatePlanSuccess
| MakePlanPrimary
......@@ -262,7 +262,7 @@ export function degreePlannerReducer(
return { ...state, visibleYears };
}
case CourseActionTypes.RemoveCourseSuccess: {
case CourseActionTypes.RemoveCourse: {
const { recordId, fromTermCode } = action.payload;
const { yearCode } = parseTermCode(fromTermCode);
......@@ -281,7 +281,7 @@ export function degreePlannerReducer(
return { ...state, visibleYears };
}
case CourseActionTypes.RemoveSaveForLaterSuccess: {
case CourseActionTypes.RemoveSaveForLater: {
const { courseId, subjectCode } = action.payload;
// // Create new saved for later array
......@@ -293,7 +293,7 @@ export function degreePlannerReducer(
return { ...state, savedForLaterCourses: newSavedForLater };
}
case CourseActionTypes.AddSaveForLaterSuccess: {
case CourseActionTypes.AddSaveForLater: {
const newSavedForLater: SavedForLaterCourse[] = [
...state.savedForLaterCourses,
{
......
......@@ -26,13 +26,6 @@ export class YearContainerComponent implements OnInit {
public ngOnInit(): void {
this.isExpanded$ = this.store.pipe(
select(selectors.selectYearExpandedState, { yearCode: this.yearCode }),
tap(isExpanded =>
console.log(
`changed ${this.yearCode} to ${
isExpanded ? 'expanded' : 'collapsed'
}`,
),
),
);
this.activeTermCodes$ = this.store.pipe(
......
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