mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Merge pull request #3944 from node-red-hitachi/fix-deploy-locked-flow
fix deployment of locked flow
This commit is contained in:
		@@ -558,6 +558,11 @@ RED.deploy = (function() {
 | 
			
		||||
                RED.notify('<p>' + RED._("deploy.successfulDeploy") + '</p>', "success");
 | 
			
		||||
            }
 | 
			
		||||
            RED.nodes.eachNode(function (node) {
 | 
			
		||||
                const flow = node.z && (RED.nodes.workspace(node.z) || RED.nodes.subflow(node.z) || null);
 | 
			
		||||
                const isLocked = flow ? flow.locked : false;
 | 
			
		||||
                if (flow && isLocked) {
 | 
			
		||||
                    flow.locked = false;
 | 
			
		||||
                }
 | 
			
		||||
                if (node.changed) {
 | 
			
		||||
                    node.dirty = true;
 | 
			
		||||
                    node.changed = false;
 | 
			
		||||
@@ -569,6 +574,9 @@ RED.deploy = (function() {
 | 
			
		||||
                if (node.credentials) {
 | 
			
		||||
                    delete node.credentials;
 | 
			
		||||
                }
 | 
			
		||||
                if (flow && isLocked) {
 | 
			
		||||
                    flow.locked = isLocked;
 | 
			
		||||
                }
 | 
			
		||||
            });
 | 
			
		||||
            RED.nodes.eachConfig(function (confNode) {
 | 
			
		||||
                confNode.changed = false;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user