Skip to content

Commit

Permalink
Add secondary node label as componentId when description is modified
Browse files Browse the repository at this point in the history
  • Loading branch information
ibek committed Oct 10, 2024
1 parent f0ac182 commit 78fd647
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const CustomNode: FunctionComponent<CustomNodeProps> = observer(({ element, ...r
const tooltipContent = vizNode?.getTooltipContent();
const statusDecoratorTooltip = vizNode?.getNodeValidationText();
const nodeStatus = !statusDecoratorTooltip || isDisabled ? NodeStatus.default : NodeStatus.warning;
const id = vizNode?.getTitle();

return (
<DefaultNode
Expand All @@ -43,6 +44,7 @@ const CustomNode: FunctionComponent<CustomNodeProps> = observer(({ element, ...r
statusDecoratorTooltip={statusDecoratorTooltip}
nodeStatus={nodeStatus}
onStatusDecoratorClick={noopFn}
secondaryLabel={id !== label ? id : undefined}
>
<g
className="custom-node"
Expand Down

0 comments on commit 78fd647

Please sign in to comment.