Skip to content

Commit

Permalink
Include rel ID in messaging for rel type editing
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Dec 7, 2023
1 parent 3e09d23 commit 823ae5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export function DetailsPane({
}}
graphStyle={graphStyle}
onGraphInteraction={onGraphInteraction}
relId={vizItem.item.id}
sourceNodeId={vizItem.item.source.id}
targetNodeId={vizItem.item.target.id}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@ export type StyleableRelTypeProps = {
graphStyle: GraphStyleModel
selectedRelType: { relType: string; propertyKeys: string[]; count?: number }
onGraphInteraction?: GraphInteractionCallBack
relId?: string
sourceNodeId?: string
targetNodeId?: string
}
export function StyleableRelType({
selectedRelType,
graphStyle,
onGraphInteraction = () => undefined,
relId,
sourceNodeId,
targetNodeId
}: StyleableRelTypeProps): JSX.Element {
Expand All @@ -52,6 +54,7 @@ export function StyleableRelType({
contentEditable="true"
onInput={e =>
onGraphInteraction(REL_TYPE_UPDATE, {
relId: relId,
sourceNodeId: sourceNodeId,
targetNodeId: targetNodeId,
oldType: selectedRelType.relType,
Expand Down

0 comments on commit 823ae5a

Please sign in to comment.