Skip to content

Commit

Permalink
fix(1390): Pipe contextual menu broken buttons removed
Browse files Browse the repository at this point in the history
  • Loading branch information
tplevko committed Sep 9, 2024
1 parent e6c5ed7 commit df6f65d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ exports[`Pipe getNodeInteraction should return the correct interaction for the '
{
"canBeDisabled": false,
"canHaveChildren": false,
"canHaveNextStep": true,
"canHavePreviousStep": true,
"canHaveNextStep": false,
"canHavePreviousStep": false,
"canHaveSpecialChildren": false,
"canRemoveFlow": true,
"canRemoveStep": true,
"canReplaceStep": true,
"canRemoveStep": false,
"canReplaceStep": false,
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ export class PipeVisualEntity implements BaseVisualCamelEntity {
getNodeInteraction(data: IVisualizationNodeData): NodeInteraction {
return {
/** Pipe cannot have a Kamelet before the source property */
canHavePreviousStep: data.path !== 'source',
canHavePreviousStep: data.path !== ROOT_PATH && data.path !== 'source',
/** Pipe cannot have a Kamelet after the sink property */
canHaveNextStep: data.path !== 'sink',
canHaveNextStep: data.path !== ROOT_PATH && data.path !== 'sink',
canHaveChildren: false,
canHaveSpecialChildren: false,
canReplaceStep: true,
canRemoveStep: true,
canReplaceStep: data.path !== ROOT_PATH,
canRemoveStep: data.path !== ROOT_PATH,
canRemoveFlow: data.path === ROOT_PATH,
canBeDisabled: false,
};
Expand Down

0 comments on commit df6f65d

Please sign in to comment.