mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
feat(editor): Indicate dirty nodes with yellow borders/connectors on canvas (#13040)
This commit is contained in:
@@ -117,7 +117,9 @@ export class Workflow {
|
||||
this.connectionsBySourceNode = parameters.connections;
|
||||
|
||||
// Save also the connections by the destination nodes
|
||||
this.connectionsByDestinationNode = this.__getConnectionsByDestination(parameters.connections);
|
||||
this.connectionsByDestinationNode = Workflow.getConnectionsByDestination(
|
||||
parameters.connections,
|
||||
);
|
||||
|
||||
this.active = parameters.active || false;
|
||||
|
||||
@@ -143,7 +145,7 @@ export class Workflow {
|
||||
* to easily find parent nodes.
|
||||
*
|
||||
*/
|
||||
__getConnectionsByDestination(connections: IConnections): IConnections {
|
||||
static getConnectionsByDestination(connections: IConnections): IConnections {
|
||||
const returnConnection: IConnections = {};
|
||||
|
||||
let connectionInfo;
|
||||
@@ -446,7 +448,7 @@ export class Workflow {
|
||||
}
|
||||
|
||||
// Use the updated connections to create updated connections by destination nodes
|
||||
this.connectionsByDestinationNode = this.__getConnectionsByDestination(
|
||||
this.connectionsByDestinationNode = Workflow.getConnectionsByDestination(
|
||||
this.connectionsBySourceNode,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user