Skip to content

Commit

Permalink
Fixes comment node lighting up when flow runs (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
GabiGrin authored Aug 30, 2024
1 parent 2f44ce7 commit 0413554
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions flow-editor/src/visual-node-editor/instance-view/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ $half-of-pin-height: 16px;
z-index: 1;

&[data-node-id="Comment"] {
[data-pin-id="__trigger"] {
display: none; // mega ugly hack to hide the trigger pin on the comment node
[data-pin-id] {
display: none; // mega ugly hack to hide pins on comment node
}
}

Expand Down
6 changes: 4 additions & 2 deletions stdlib/src/Misc/Comment.flyde.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MacroNode } from "@flyde/core";
import { MacroNode, nodeInput } from "@flyde/core";

export interface CommentConfig {
content: string;
Expand Down Expand Up @@ -34,7 +34,9 @@ export const Comment: MacroNode<CommentConfig> = {

displayName: config.content,
description: "Comment node",
inputs: {},
inputs: {
never: nodeInput(), // this is a hack to make the node never trigger
},
outputs: {},
};
},
Expand Down

0 comments on commit 0413554

Please sign in to comment.