Skip to content

Commit

Permalink
touchup: allow edge cell to be right-clicked
Browse files Browse the repository at this point in the history
is prep so that indicator functionality is still
enabled if indicators are being hidden.
  • Loading branch information
keyserj committed Dec 3, 2024
1 parent 97c74e6 commit e7bd593
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/web/topic/components/CriteriaTable/EdgeCell.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import { openContextMenu } from "@/web/common/store/contextMenuActions";
import { CommonIndicators } from "@/web/topic/components/Indicator/CommonIndicators";
import { ContentIndicators } from "@/web/topic/components/Indicator/ContentIndicators";
import { Edge } from "@/web/topic/utils/graph";

export const EdgeCell = ({ edge }: { edge: Edge }) => {
return (
<div className="flex h-full flex-col items-center justify-center">
<div
className="flex h-full flex-col items-center justify-center"
onContextMenu={(event) => openContextMenu(event, { edge })}
>
<CommonIndicators graphPart={edge} notes={edge.data.notes} />
<ContentIndicators
className="ml-0"
Expand Down

0 comments on commit e7bd593

Please sign in to comment.