Skip to content

Commit

Permalink
Include rel ID in messaging for rel type editing (#47)
Browse files Browse the repository at this point in the history
* Include rel ID in messaging for rel type editing

* Version bump
  • Loading branch information
QubitPi committed Jun 11, 2024
1 parent 90a0da9 commit d08ce36
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion src/neo4j-arc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "neo4j-devtools-arc",
"version": "0.0.76",
"version": "0.0.77",
"main": "dist/neo4j-arc.js",
"author": "Neo4j Inc.",
"license": "GPL-3.0",
Expand Down

0 comments on commit d08ce36

Please sign in to comment.