Skip to content

Commit

Permalink
fix(Canvas): Restore contextual menu labels
Browse files Browse the repository at this point in the history
After removing the node id from the contextual's menu labels, some EIPs have
duplicated `Insert` items, and that's not correct since one `Insert` is for
inserting additional nodes while the other is to insert special nodes, like `when` or `otherwise`.

This PR restores the previous label while we get a better approach from an UX perspective.
  • Loading branch information
lordrip committed Apr 2, 2024
1 parent 272e659 commit 8345fae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const ItemInsertChildNode: FunctionComponent<ItemInsertChildNodeProps> =

return shouldRender ? (
<ContextMenuItem onClick={onInsertNode} data-testid={props['data-testid']}>
<AngleDoubleDownIcon /> Insert
<AngleDoubleDownIcon /> Insert {props.mode === AddStepMode.InsertSpecialChildStep ? 'special' : ''} step
</ContextMenuItem>
) : null;
};

0 comments on commit 8345fae

Please sign in to comment.