mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -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
|
// Selected Nodes
|
||||||
addSelectedNode (state, node: INodeUi) {
|
addSelectedNode (state, node: INodeUi) {
|
||||||
state.stateIsDirty = true;
|
|
||||||
state.selectedNodes.push(node);
|
state.selectedNodes.push(node);
|
||||||
},
|
},
|
||||||
removeNodeFromSelection (state, node: INodeUi) {
|
removeNodeFromSelection (state, node: INodeUi) {
|
||||||
|
@ -427,8 +426,8 @@ export const store = new Vuex.Store({
|
||||||
});
|
});
|
||||||
|
|
||||||
if (node) {
|
if (node) {
|
||||||
state.stateIsDirty = true;
|
|
||||||
for (const key of Object.keys(updateInformation.properties)) {
|
for (const key of Object.keys(updateInformation.properties)) {
|
||||||
|
state.stateIsDirty = true;
|
||||||
Vue.set(node, key, updateInformation.properties[key]);
|
Vue.set(node, key, updateInformation.properties[key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -548,17 +547,14 @@ export const store = new Vuex.Store({
|
||||||
},
|
},
|
||||||
|
|
||||||
setActiveNode (state, nodeName: string) {
|
setActiveNode (state, nodeName: string) {
|
||||||
state.stateIsDirty = true;
|
|
||||||
state.activeNode = nodeName;
|
state.activeNode = nodeName;
|
||||||
},
|
},
|
||||||
|
|
||||||
setLastSelectedNode (state, nodeName: string) {
|
setLastSelectedNode (state, nodeName: string) {
|
||||||
state.stateIsDirty = true;
|
|
||||||
state.lastSelectedNode = nodeName;
|
state.lastSelectedNode = nodeName;
|
||||||
},
|
},
|
||||||
|
|
||||||
setLastSelectedNodeOutputIndex (state, outputIndex: number | null) {
|
setLastSelectedNodeOutputIndex (state, outputIndex: number | null) {
|
||||||
state.stateIsDirty = true;
|
|
||||||
state.lastSelectedNodeOutputIndex = outputIndex;
|
state.lastSelectedNodeOutputIndex = outputIndex;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue