Improve editor-UI dirty checking

This commit is contained in:
Jan Oberhauser
2020-11-04 13:04:40 +01:00
parent d80d486e59
commit 9465653fab
4 changed files with 8 additions and 23 deletions

View File

@@ -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,