Skip to content

Commit 3309ecf

Browse files
committed
add course level filter
1 parent bea6364 commit 3309ecf

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

source/views/sis/course-search/lib/build-filters.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export async function buildFilters(): Promise<FilterType[]> {
1818

1919
const allGEs = ges.map(ge => ({title: ge}))
2020
const allDepartments = departments.map(dep => ({title: dep}))
21+
const courseLevelOptions = [{title: 100}, {title: 200}, {title: 300}]
2122

2223
return [
2324
{
@@ -80,6 +81,22 @@ export async function buildFilters(): Promise<FilterType[]> {
8081
key: 'departments',
8182
},
8283
},
84+
{
85+
type: 'list',
86+
key: 'level',
87+
enabled: false,
88+
spec: {
89+
title: 'Level',
90+
showImages: false,
91+
options: courseLevelOptions,
92+
mode: 'OR',
93+
selected: courseLevelOptions,
94+
displayTitle: true,
95+
},
96+
apply: {
97+
key: 'level',
98+
},
99+
},
83100
{
84101
type: 'toggle',
85102
key: 'status',

0 commit comments

Comments
 (0)