mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
👕 Fix lint issue
This commit is contained in:
parent
72bd291efb
commit
983ef13db9
|
@ -46,6 +46,11 @@ declare module 'jsplumb' {
|
||||||
interface Overlay {
|
interface Overlay {
|
||||||
setVisible(visible: boolean): void;
|
setVisible(visible: boolean): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface OnConnectionBindInfo {
|
||||||
|
originalSourceEndpoint: Endpoint;
|
||||||
|
originalTargetEndpoint: Endpoint;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,7 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { jsPlumb, OnConnectionBindInfo } from 'jsplumb';
|
import { jsPlumb, Endpoint, OnConnectionBindInfo } from 'jsplumb';
|
||||||
import { NODE_NAME_PREFIX, PLACEHOLDER_EMPTY_WORKFLOW_ID } from '@/constants';
|
import { NODE_NAME_PREFIX, PLACEHOLDER_EMPTY_WORKFLOW_ID } from '@/constants';
|
||||||
import { copyPaste } from '@/components/mixins/copyPaste';
|
import { copyPaste } from '@/components/mixins/copyPaste';
|
||||||
import { genericHelpers } from '@/components/mixins/genericHelpers';
|
import { genericHelpers } from '@/components/mixins/genericHelpers';
|
||||||
|
@ -1211,7 +1211,7 @@ export default mixins(
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
const updateConnectionDetach = (sourceEndpoint, targetEndpoint, maxConnections) => {
|
const updateConnectionDetach = (sourceEndpoint: Endpoint, targetEndpoint: Endpoint, maxConnections: number) => {
|
||||||
// If the source endpoint is not connected to anything else anymore
|
// If the source endpoint is not connected to anything else anymore
|
||||||
// display the output-name overlays on the endpoint if any exist
|
// display the output-name overlays on the endpoint if any exist
|
||||||
if (sourceEndpoint !== undefined && sourceEndpoint.connections!.length === maxConnections) {
|
if (sourceEndpoint !== undefined && sourceEndpoint.connections!.length === maxConnections) {
|
||||||
|
@ -1226,7 +1226,7 @@ export default mixins(
|
||||||
inputNameOverlay.setVisible(true);
|
inputNameOverlay.setVisible(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
this.instance.bind('connectionMoved', (info) => {
|
this.instance.bind('connectionMoved', (info) => {
|
||||||
// When a connection gets moved from one node to another it for some reason
|
// When a connection gets moved from one node to another it for some reason
|
||||||
|
|
Loading…
Reference in a new issue