mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
fix(editor): Remove primary highlight color from edge being executed on new canvas (#12307)
This commit is contained in:
parent
3fdc83aee5
commit
50913de265
|
@ -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' } },
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue