1
0
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:
Stephen McLaughlin 2022-04-29 10:44:19 +01:00 committed by GitHub
parent b0a5d4fb6f
commit 662a44fccf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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