fix(editor): Remove primary highlight color from edge being executed on new canvas (#12307)

This commit is contained in:
Alex Grozav 2024-12-20 13:37:23 +02:00 committed by GitHub
parent 3fdc83aee5
commit 50913de265
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 14 deletions

View file

@ -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' } },

View file

@ -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) {