Skip to content

Commit

Permalink
Merge pull request #1957 from codecrafters-io/remove-docker-from-voting
Browse files Browse the repository at this point in the history
Hide deprecated courses on vote page
  • Loading branch information
rohitpaulk authored Jul 11, 2024
2 parents 039e684 + 55e31aa commit c91c1e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/controllers/vote/course-extension-ideas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ export default class CourseExtensionIdeasController extends Controller {
}

get orderedCourses() {
return this.model.courseExtensionIdeas.mapBy('course').uniq().sortBy('sortPositionForTrack');
return this.model.courseExtensionIdeas
.mapBy('course')
.uniq()
.rejectBy('releaseStatusIsDeprecated')
.rejectBy('releaseStatusIsAlpha')
.sortBy('sortPositionForTrack');
}

get selectedCourse() {
Expand Down

0 comments on commit c91c1e8

Please sign in to comment.