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 6, 2024
1 parent e6c5ed7 commit 2130b9c
Showing 1 changed file with 4 additions and 4 deletions.
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 2130b9c

Please sign in to comment.