From 50913de2651450e18307a833ada57656d8959493 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Fri, 20 Dec 2024 13:37:23 +0200 Subject: [PATCH] fix(editor): Remove primary highlight color from edge being executed on new canvas (#12307) --- .../canvas/elements/edges/CanvasEdge.test.ts | 12 ------------ .../components/canvas/elements/edges/CanvasEdge.vue | 2 -- 2 files changed, 14 deletions(-) diff --git a/packages/editor-ui/src/components/canvas/elements/edges/CanvasEdge.test.ts b/packages/editor-ui/src/components/canvas/elements/edges/CanvasEdge.test.ts index 6e5e1ca876..3a2defc6a0 100644 --- a/packages/editor-ui/src/components/canvas/elements/edges/CanvasEdge.test.ts +++ b/packages/editor-ui/src/components/canvas/elements/edges/CanvasEdge.test.ts @@ -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' } }, diff --git a/packages/editor-ui/src/components/canvas/elements/edges/CanvasEdge.vue b/packages/editor-ui/src/components/canvas/elements/edges/CanvasEdge.vue index 056878636e..feb15a8cbf 100644 --- a/packages/editor-ui/src/components/canvas/elements/edges/CanvasEdge.vue +++ b/packages/editor-ui/src/components/canvas/elements/edges/CanvasEdge.vue @@ -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) {