mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
🐛 Fix issue that properties on node root level could not be changed
This commit is contained in:
parent
17768e0dd8
commit
9c0b1a9cec
|
@ -310,20 +310,8 @@ export default mixins(
|
||||||
this.$emit('valueChanged', sendData);
|
this.$emit('valueChanged', sendData);
|
||||||
|
|
||||||
this.$store.commit('setActiveNode', newValue);
|
this.$store.commit('setActiveNode', newValue);
|
||||||
} else if (parameterData.name === 'color') {
|
} else if (parameterData.name.startsWith('parameters.')) {
|
||||||
// Color of node changed
|
// A node parameter changed
|
||||||
|
|
||||||
// Update color in settings
|
|
||||||
Vue.set(this.nodeValues, 'color', newValue);
|
|
||||||
// Update color in vuex
|
|
||||||
const updateInformation = {
|
|
||||||
name: node.name,
|
|
||||||
key: 'color',
|
|
||||||
value: newValue,
|
|
||||||
};
|
|
||||||
this.$store.commit('setNodeValue', updateInformation);
|
|
||||||
} else {
|
|
||||||
// Everything else are node parameters
|
|
||||||
|
|
||||||
const nodeType = this.$store.getters.nodeType(node.type);
|
const nodeType = this.$store.getters.nodeType(node.type);
|
||||||
|
|
||||||
|
@ -390,6 +378,19 @@ export default mixins(
|
||||||
} as INodeIssueData);
|
} as INodeIssueData);
|
||||||
|
|
||||||
this.updateNodeCredentialIssues(node);
|
this.updateNodeCredentialIssues(node);
|
||||||
|
} else {
|
||||||
|
// A property on the node itself changed
|
||||||
|
|
||||||
|
// Update data in settings
|
||||||
|
Vue.set(this.nodeValues, parameterData.name, newValue);
|
||||||
|
|
||||||
|
// Update data in vuex
|
||||||
|
const updateInformation = {
|
||||||
|
name: node.name,
|
||||||
|
key: parameterData.name,
|
||||||
|
value: newValue,
|
||||||
|
};
|
||||||
|
this.$store.commit('setNodeValue', updateInformation);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue