summaryrefslogtreecommitdiff
path: root/components/contextmenu.tsx
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-10-18 00:53:28 +0200
committerGitHub <[email protected]>2021-10-18 00:53:28 +0200
commit01d432e34c7c59a1d9d3c4c6ff8155a17e3fc00a (patch)
tree47e101b8e3baadbdd29f0977a22fddadcef361a3 /components/contextmenu.tsx
parent92f465fbe2dd66576f902b65171da6116e29f1c2 (diff)
parentca5cfb62c1cc1e2850103ba13ede59380e6808ba (diff)
Merge pull request #125 from org-roam/feat/exclusion
feat: exclude nodes from local graph (#115)
Diffstat (limited to 'components/contextmenu.tsx')
-rw-r--r--components/contextmenu.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/contextmenu.tsx b/components/contextmenu.tsx
index 77deb48..54a8c85 100644
--- a/components/contextmenu.tsx
+++ b/components/contextmenu.tsx
@@ -40,6 +40,7 @@ import {
ExternalLinkIcon,
ChevronRightIcon,
PlusSquareIcon,
+ MinusIcon,
} from '@chakra-ui/icons'
import { OrgRoamGraphReponse, OrgRoamLink, OrgRoamNode } from '../api'
@@ -119,6 +120,9 @@ export const ContextMenu = (props: ContextMenuProps) => {
>
Open local graph for this node
</MenuItem>
+ <MenuItem onClick={() => handleLocal(target!, 'remove')} icon={<MinusIcon />}>
+ Exclude node from local graph
+ </MenuItem>
</>
)}
{!target?.properties?.FILELESS ? (