diff --git a/packages/editor-ui/src/components/NodeSettings.vue b/packages/editor-ui/src/components/NodeSettings.vue index 58a7708e58..8607ec2f8f 100644 --- a/packages/editor-ui/src/components/NodeSettings.vue +++ b/packages/editor-ui/src/components/NodeSettings.vue @@ -31,6 +31,21 @@ {{ $locale.baseText('nodeSettings.thisNodeDoesNotHaveAnyParameters') }} + +
+ +
+
@@ -87,6 +102,18 @@ export default mixins( NodeExecuteButton, }, computed: { + customActionSelected (): boolean { + return ( + this.nodeValues.parameters !== undefined && + typeof this.nodeValues.parameters === 'object' && + this.nodeValues.parameters !== null && + !Array.isArray(this.nodeValues.parameters) && + ( + this.nodeValues.parameters.resource === 'customAction' || + this.nodeValues.parameters.operation === 'customAction' + ) + ); + }, nodeType (): INodeTypeDescription | null { if (this.node) { return this.$store.getters.nodeType(this.node.type, this.node.typeVersion); diff --git a/packages/editor-ui/src/components/ParameterInput.vue b/packages/editor-ui/src/components/ParameterInput.vue index f1cda9d38f..5afee14963 100644 --- a/packages/editor-ui/src/components/ParameterInput.vue +++ b/packages/editor-ui/src/components/ParameterInput.vue @@ -132,6 +132,18 @@
+ +
+
+ {{ $locale.baseText('parameterInput.customAction') }} +
+
+
HTTP Request node to make a custom API call with your {nodeTypeDisplayName} credential. Learn more", "nodeView.addNode": "Add node", "nodeView.addSticky": "Click to add sticky note", "nodeView.confirmMessage.beforeRouteLeave.cancelButtonText": "Leave without saving", @@ -483,6 +484,7 @@ "openWorkflow.workflowImportError": "Could not import workflow", "openWorkflow.workflowNotFoundError": "Could not find workflow", "parameterInput.addExpression": "Add Expression", + "parameterInput.customAction": "Custom Action", "parameterInput.error": "ERROR", "parameterInput.issues": "Issues", "parameterInput.loadingOptions": "Loading options...",