mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
save and restore v5 config user props
This commit is contained in:
parent
b0a5d4fb6f
commit
662a44fccf
@ -609,6 +609,7 @@
|
|||||||
default: !this.userProps ? 'none':'json',
|
default: !this.userProps ? 'none':'json',
|
||||||
types: [typedInputNoneOpt, 'json']
|
types: [typedInputNoneOpt, 'json']
|
||||||
});
|
});
|
||||||
|
$("#node-config-input-userProps").typedInput('value',this.userProps);
|
||||||
if (typeof this.keepalive === 'undefined') {
|
if (typeof this.keepalive === 'undefined') {
|
||||||
this.keepalive = 15;
|
this.keepalive = 15;
|
||||||
$("#node-config-input-keepalive").val(this.keepalive);
|
$("#node-config-input-keepalive").val(this.keepalive);
|
||||||
@ -718,6 +719,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (v5) {
|
if (v5) {
|
||||||
|
const userProps = $("#node-config-input-userProps").val().trim();
|
||||||
|
if (userProps) {
|
||||||
|
this.userProps = userProps;
|
||||||
|
}
|
||||||
this.birthMsg = saveV5Message("birth");
|
this.birthMsg = saveV5Message("birth");
|
||||||
this.closeMsg = saveV5Message("close");
|
this.closeMsg = saveV5Message("close");
|
||||||
this.willMsg = saveV5Message("will");
|
this.willMsg = saveV5Message("will");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user