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