Skip to content

Commit

Permalink
feat(Node): Disable connection
Browse files Browse the repository at this point in the history
  • Loading branch information
arnolanglade committed Nov 9, 2023
1 parent 1d7b112 commit 76bdaf0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/mikado-graph/component/mikado-graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function AddNewPrerequisiteNode({
}) {
return (
<div className={styles.container}>
<Handle type="target" position={Position.Top} />
<Handle type="target" isConnectable={false} position={Position.Top} />
<AddPrerequisiteForm onSubmit={onPrerequisiteSubmit} />
</div>
);
Expand Down Expand Up @@ -54,7 +54,7 @@ export function GoalNode({
</Button>
)
}
<Handle type="source" position={Position.Bottom} />
<Handle type="source" isConnectable={false} position={Position.Bottom} />
</div>
);
}
Expand All @@ -80,7 +80,7 @@ export function PrerequisiteNode({
className={`${styles.container} ${styles[status]}`}
key={id}
>
<Handle type="target" position={Position.Top} />
<Handle type="target" isConnectable={false} position={Position.Top} />
<Typography variant="p">
<Translation id="prerequisite.label" values={{ label }} />
</Typography>
Expand Down Expand Up @@ -110,7 +110,7 @@ export function PrerequisiteNode({
</ButtonGroup>
)}

<Handle type="source" position={Position.Bottom} />
<Handle type="source" isConnectable={false} position={Position.Bottom} />
</div>
);
}
Expand Down

0 comments on commit 76bdaf0

Please sign in to comment.