Skip to content

Commit

Permalink
feat: added facet for courseLevel, fixes #428
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustChew committed Aug 26, 2024
1 parent 78539f7 commit 4837bc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/app/[lang]/(mods-pages)/courses/Filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ const Filters = () => {
synonms={languageSynonyms}
clientSearch={true}
/>
<div className="flex flex-col gap-2">
<span className="text-sm">{dict.course.refine.level}</span>
<FilterItem attribute="courseLevel" searchable={true} limit={20} />
</div>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/dictionaries/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"refine": {
"title": "篩選",
"semester": "學期",
"level": "修習年級",
"level": "課程對象",
"language": "授課語言",
"department": "開課系所",
"specialization": "一二專選課",
Expand Down

0 comments on commit 4837bc0

Please sign in to comment.