mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-13 05:47:31 -08:00
⚡ Reduced dirty state sensetivity
- No longer considers opening a node a state change - No longer considers selecting a node a state change
This commit is contained in:
parent
1cdf0164e9
commit
4c04cc015d
|
@ -160,7 +160,6 @@ export const store = new Vuex.Store({
|
|||
|
||||
// Selected Nodes
|
||||
addSelectedNode (state, node: INodeUi) {
|
||||
state.stateIsDirty = true;
|
||||
state.selectedNodes.push(node);
|
||||
},
|
||||
removeNodeFromSelection (state, node: INodeUi) {
|
||||
|
@ -427,8 +426,8 @@ export const store = new Vuex.Store({
|
|||
});
|
||||
|
||||
if (node) {
|
||||
state.stateIsDirty = true;
|
||||
for (const key of Object.keys(updateInformation.properties)) {
|
||||
state.stateIsDirty = true;
|
||||
Vue.set(node, key, updateInformation.properties[key]);
|
||||
}
|
||||
}
|
||||
|
@ -548,17 +547,14 @@ export const store = new Vuex.Store({
|
|||
},
|
||||
|
||||
setActiveNode (state, nodeName: string) {
|
||||
state.stateIsDirty = true;
|
||||
state.activeNode = nodeName;
|
||||
},
|
||||
|
||||
setLastSelectedNode (state, nodeName: string) {
|
||||
state.stateIsDirty = true;
|
||||
state.lastSelectedNode = nodeName;
|
||||
},
|
||||
|
||||
setLastSelectedNodeOutputIndex (state, outputIndex: number | null) {
|
||||
state.stateIsDirty = true;
|
||||
state.lastSelectedNodeOutputIndex = outputIndex;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue