Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix monographs and reminders search #2142

Merged
merged 8 commits into from
Mar 20, 2023
6 changes: 6 additions & 0 deletions apps/web/src/views/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ async function typeToItems(type, context) {
}
case "tags":
return ["tags", db.tags.all];
case "reminders":
return ["reminders", db.reminders.all];
case "trash":
return ["trash", db.trash.all];
default:
Expand Down Expand Up @@ -100,6 +102,8 @@ function Search({ type }) {
}
case "favorite":
return "favorite notes";
case "monographs":
return "all monographs";
case "color": {
const color = db.colors.all.find((tag) => tag.id === context.value);
return `notes in color ${color.title}`;
Expand All @@ -117,6 +121,8 @@ function Search({ type }) {
}
case "tags":
return "all tags";
case "reminders":
return "all reminders";
case "trash":
return "all trash";
default:
Expand Down