Skip to content

Commit

Permalink
Update client/src/components/Workflow/Editor/Node.vue
Browse files Browse the repository at this point in the history
Co-authored-by: Laila Los <[email protected]>
  • Loading branch information
ahmedhamidawan and ElectronicBlueberry authored Apr 29, 2024
1 parent 737eb87 commit 5d623af
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions client/src/components/Workflow/Editor/Node.vue
Original file line number Diff line number Diff line change
Expand Up @@ -242,21 +242,12 @@ const style = computed(() => {
});
const errors = computed(() => props.step.errors || stateStore.getStepLoadingState(props.id)?.error);
const headerClass = computed(() => {
let cls;
if (props.isInvocation) {
cls = "cursor-pointer";
if (invocationStep.value.headerClass) {
cls += ` ${invocationStep.value.headerClass}`;
} else {
cls += " node-header";
}
} else {
cls = "node-header";
if (!props.readonly && !props.isInvocation) {
cls += " cursor-move";
}
}
return cls;
return {
...invocationStep.value.headerClass,
"cursor-pointer": props.isInvocation,
"node-header": !props.isInvocation || invocationStep.value.headerClass === undefined,
"cursor-move": !props.readonly && !props.isInvocation,
};
});
const inputs = computed(() => {
const connections = connectionStore.getConnectionsForStep(props.id);
Expand Down

0 comments on commit 5d623af

Please sign in to comment.