1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Avoid unecessary project refresh on branch-switch

Fixes #1597
This commit is contained in:
Nick O'Leary 2018-01-31 23:16:38 +00:00
parent 528db67c34
commit 3d8d6953ec
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -650,10 +650,10 @@ RED.sidebar.versionControl = (function() {
// done(error,null); // done(error,null);
}, },
200: function(data) { 200: function(data) {
RED.projects.refresh(function() { // Changing branch will trigger a runtime event
closeBranchBox(function() { // that leads to a project refresh.
spinner.remove(); closeBranchBox(function() {
}); spinner.remove();
}); });
}, },
400: { 400: {
@ -672,7 +672,9 @@ RED.sidebar.versionControl = (function() {
}, },
} }
},body).always(function(){ },body).always(function(){
RED.deploy.setDeployInflight(false); setTimeout(function() {
RED.deploy.setDeployInflight(false);
},500);
}); });
} }
}); });