summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-10-14 14:39:35 +0200
committerThomas F. K. Jorna <[email protected]>2021-10-14 14:39:35 +0200
commit4fd9bc344d4a94fc081a43d19067e70ef494e4ae (patch)
tree45b50c31fbf9903b62154b70e88c3aea43ca0dee /components
parentce08e92ef245961c25d1b0febb5983fcc5c2809e (diff)
feat: filter org-noter pages
Diffstat (limited to 'components')
-rw-r--r--components/Tweaks/FilterPanel.tsx11
-rw-r--r--components/config.ts1
2 files changed, 12 insertions, 0 deletions
diff --git a/components/Tweaks/FilterPanel.tsx b/components/Tweaks/FilterPanel.tsx
index 39233f9..ebe48a2 100644
--- a/components/Tweaks/FilterPanel.tsx
+++ b/components/Tweaks/FilterPanel.tsx
@@ -123,6 +123,17 @@ const FilterPanel = (props: FilterPanelProps) => {
></Switch>
</Flex>
<Flex justifyContent="space-between">
+ <Text>Org-noter pages</Text>
+ <Switch
+ onChange={() => {
+ setFilter((curr: typeof initialFilter) => {
+ return { ...curr, noter: !curr.noter }
+ })
+ }}
+ isChecked={filter.noter}
+ ></Switch>
+ </Flex>
+ <Flex justifyContent="space-between">
<Text>Citations without note files</Text>
<Switch
onChange={() => {
diff --git a/components/config.ts b/components/config.ts
index ec1c691..b3f5905 100644
--- a/components/config.ts
+++ b/components/config.ts
@@ -43,6 +43,7 @@ export const initialFilter = {
nodes: [],
links: [],
date: [],
+ noter: true,
}
export const initialVisuals = {