Skip to content

Commit

Permalink
fix(editor): Remove primary highlight color from edge being executed …
Browse files Browse the repository at this point in the history
…on new canvas (#12307)
  • Loading branch information
alexgrozav authored Dec 20, 2024
1 parent 3fdc83a commit 50913de
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,6 @@ describe('CanvasEdge', () => {
});
});

it('should correctly style a running connection', () => {
const { container } = renderComponent({
props: { ...DEFAULT_PROPS, data: { ...DEFAULT_PROPS.data, status: 'running' } },
});

const edge = container.querySelector('.vue-flow__edge-path');

expect(edge).toHaveStyle({
stroke: 'var(--color-primary)',
});
});

it('should correctly style a pinned connection', () => {
const { container } = renderComponent({
props: { ...DEFAULT_PROPS, data: { ...DEFAULT_PROPS.data, status: 'pinned' } },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ const edgeColor = computed(() => {
return 'var(--color-success)';
} else if (status.value === 'pinned') {
return 'var(--color-secondary)';
} else if (status.value === 'running') {
return 'var(--color-primary)';
} else if (!isMainConnection.value) {
return 'var(--node-type-supplemental-color)';
} else if (props.selected) {
Expand Down

0 comments on commit 50913de

Please sign in to comment.