mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-29 06:29:42 -08:00
fix z-index bug
This commit is contained in:
parent
5945c83018
commit
36c9f7ab5b
|
@ -1962,6 +1962,17 @@ export default mixins(
|
||||||
const sourceIndex = this.$store.getters.getNodeIndex(sourceNodeName);
|
const sourceIndex = this.$store.getters.getNodeIndex(sourceNodeName);
|
||||||
const sourceId = `${NODE_NAME_PREFIX}${sourceIndex}`;
|
const sourceId = `${NODE_NAME_PREFIX}${sourceIndex}`;
|
||||||
|
|
||||||
|
const resetConnection = (connection: Connection) => {
|
||||||
|
connection.removeOverlay(OVERLAY_RUN_ITEMS_ID);
|
||||||
|
connection.setPaintStyle(CONNECTOR_PAINT_STYLE_DEFAULT);
|
||||||
|
showOrHideMidpointArrow(connection);
|
||||||
|
// @ts-ignore
|
||||||
|
if (connection.canvas) {
|
||||||
|
// @ts-ignore
|
||||||
|
(connection.canvas as Element).classList.remove('success');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
if (data === null || data.length === 0) {
|
if (data === null || data.length === 0) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const outgoing = this.instance.getConnections({
|
const outgoing = this.instance.getConnections({
|
||||||
|
@ -1969,8 +1980,7 @@ export default mixins(
|
||||||
}) as Connection[];
|
}) as Connection[];
|
||||||
|
|
||||||
outgoing.forEach((connection: Connection) => {
|
outgoing.forEach((connection: Connection) => {
|
||||||
connection.removeOverlay(OVERLAY_RUN_ITEMS_ID);
|
resetConnection(connection);
|
||||||
connection.setPaintStyle(CONNECTOR_PAINT_STYLE_DEFAULT);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -2031,15 +2041,7 @@ export default mixins(
|
||||||
|
|
||||||
const output = outputMap[sourceOutputIndex][targetNodeName][targetInputIndex];
|
const output = outputMap[sourceOutputIndex][targetNodeName][targetInputIndex];
|
||||||
if (!output || !output.total) {
|
if (!output || !output.total) {
|
||||||
conn.setPaintStyle(CONNECTOR_PAINT_STYLE_DEFAULT);
|
resetConnection(conn);
|
||||||
conn.removeOverlay(OVERLAY_RUN_ITEMS_ID);
|
|
||||||
showOrHideMidpointArrow(conn);
|
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
if (conn.canvas) {
|
|
||||||
// @ts-ignore
|
|
||||||
(conn.canvas as Element).classList.remove('success');
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue