mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Added validation while export into library
This commit is contained in:
		@@ -447,7 +447,9 @@ RED.library = (function() {
 | 
			
		||||
                            click: function() {
 | 
			
		||||
                                //TODO: move this to RED.library
 | 
			
		||||
                                var flowName = $("#node-input-library-filename").val();
 | 
			
		||||
                                if (!/^\s*$/.test(flowName)) {
 | 
			
		||||
                                if(flowName.split(/[\\/]/).pop() === "" || /^\s*$/.test(flowName)) {
 | 
			
		||||
                                    RED.notify(RED._("library.invalidFilename"),"warning");
 | 
			
		||||
                                } else {
 | 
			
		||||
                                    $.ajax({
 | 
			
		||||
                                        url:'library/flows/'+flowName,
 | 
			
		||||
                                        type: "POST",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user