mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
⚡ Improve editor-UI dirty checking
This commit is contained in:
@@ -1006,6 +1006,8 @@ export default mixins(
|
||||
|
||||
await this.addNodes([newNodeData]);
|
||||
|
||||
this.$store.commit('setStateDirty', true);
|
||||
|
||||
// Automatically deselect all nodes and select the current one and also active
|
||||
// current node
|
||||
this.deselectAllNodes();
|
||||
@@ -1500,6 +1502,8 @@ export default mixins(
|
||||
|
||||
await this.addNodes([newNodeData]);
|
||||
|
||||
this.$store.commit('setStateDirty', true);
|
||||
|
||||
// Automatically deselect all nodes and select the current one and also active
|
||||
// current node
|
||||
this.deselectAllNodes();
|
||||
@@ -1834,6 +1838,8 @@ export default mixins(
|
||||
// Add the nodes with the changed node names, expressions and connections
|
||||
await this.addNodes(Object.values(tempWorkflow.nodes), tempWorkflow.connectionsBySourceNode);
|
||||
|
||||
this.$store.commit('setStateDirty', true);
|
||||
|
||||
return {
|
||||
nodes: Object.values(tempWorkflow.nodes),
|
||||
connections: tempWorkflow.connectionsBySourceNode,
|
||||
|
||||
Reference in New Issue
Block a user