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:
parent
a849872c21
commit
184d928cf7
@ -377,12 +377,16 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$("#node-input-tostatus").on('change',function() {
|
$("#node-input-tostatus").on('change',function() {
|
||||||
if ($(this).is(":checked")) {
|
if ($(this).is(":checked")) {
|
||||||
if (!that.hasOwnProperty("statusVal") || that.statusVal === "") {
|
if (!that.hasOwnProperty("statusVal") || that.statusVal === "") {
|
||||||
that.statusType = "msg";
|
var type = $("#node-input-typed-complete").typedInput('type');
|
||||||
that.statusVal = (that.complete === "false") ? "payload" : ((that.complete === "true") ? "payload" : that.complete+"");
|
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('type',that.statusType);
|
||||||
$("#node-input-typed-status").typedInput('value',that.statusVal);
|
$("#node-input-typed-status").typedInput('value',that.statusVal);
|
||||||
|
Loading…
Reference in New Issue
Block a user