From 9a856f50d78ee566568632e94137d82f3b161471 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Wed, 25 Jan 2023 10:59:04 +0000 Subject: [PATCH] Hide repeat send option if sending nothing to address https://discourse.nodered.org/t/trigger-node-how-to-delay-and-repeat-message/74117/5 --- .../@node-red/nodes/core/function/89-trigger.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/nodes/core/function/89-trigger.html b/packages/node_modules/@node-red/nodes/core/function/89-trigger.html index 572856c92..8d6083442 100644 --- a/packages/node_modules/@node-red/nodes/core/function/89-trigger.html +++ b/packages/node_modules/@node-red/nodes/core/function/89-trigger.html @@ -25,7 +25,7 @@
@@ -181,6 +181,13 @@ $("#node-input-op2type").val('str'); } + $("#node-input-op1").on("change", function() { + if ($("#node-input-op1type").val() === "nul") { + $("#node-trigger-wait-loop").hide(); + } + else { $("#node-trigger-wait-loop").show(); } + }); + var optionNothing = {value:"nul",label:this._("trigger.output.nothing"),hasValue:false}; var optionPayload = {value:"pay",label:this._("trigger.output.existing"),hasValue:false}; var optionOriginalPayload = {value:"pay",label:this._("trigger.output.original"),hasValue:false};