From 184d928cf7a1af916b947472cb606e5a949a4d3a Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Thu, 14 May 2020 23:01:26 +0100 Subject: [PATCH] ensure debug status in sync with main option --- .../@node-red/nodes/core/common/21-debug.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/node_modules/@node-red/nodes/core/common/21-debug.html b/packages/node_modules/@node-red/nodes/core/common/21-debug.html index b1ff33baf..c4640c66a 100644 --- a/packages/node_modules/@node-red/nodes/core/common/21-debug.html +++ b/packages/node_modules/@node-red/nodes/core/common/21-debug.html @@ -377,12 +377,16 @@ } }); - $("#node-input-tostatus").on('change',function() { if ($(this).is(":checked")) { if (!that.hasOwnProperty("statusVal") || that.statusVal === "") { - that.statusType = "msg"; - that.statusVal = (that.complete === "false") ? "payload" : ((that.complete === "true") ? "payload" : that.complete+""); + var type = $("#node-input-typed-complete").typedInput('type'); + var comp = "payload"; + if (type !== 'full') { + comp = $("#node-input-typed-complete").typedInput('value'); + } + that.statusType = (type !== "jsonata") ? "msg" : "jsonata"; + that.statusVal = comp; } $("#node-input-typed-status").typedInput('type',that.statusType); $("#node-input-typed-status").typedInput('value',that.statusVal);