From 9c0b1a9cece25f3a6bcd1a5eb0e787ef1ab5521f Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Thu, 18 Jul 2019 17:41:53 +0200 Subject: [PATCH] :bug: Fix issue that properties on node root level could not be changed --- .../editor-ui/src/components/NodeSettings.vue | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/packages/editor-ui/src/components/NodeSettings.vue b/packages/editor-ui/src/components/NodeSettings.vue index 3ac6fc8bd..e2f380ef2 100644 --- a/packages/editor-ui/src/components/NodeSettings.vue +++ b/packages/editor-ui/src/components/NodeSettings.vue @@ -310,20 +310,8 @@ export default mixins( this.$emit('valueChanged', sendData); this.$store.commit('setActiveNode', newValue); - } else if (parameterData.name === 'color') { - // Color of node 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 + } else if (parameterData.name.startsWith('parameters.')) { + // A node parameter changed const nodeType = this.$store.getters.nodeType(node.type); @@ -390,6 +378,19 @@ export default mixins( } as INodeIssueData); 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); } }, /**