1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

ensure debug status in sync with main option

This commit is contained in:
Dave Conway-Jones 2020-05-14 23:01:26 +01:00
parent a849872c21
commit 184d928cf7
No known key found for this signature in database
GPG Key ID: 302A6725C594817F

View File

@ -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);