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

Disable editor whilst a deploy is inflight

Fixes #1332
This commit is contained in:
Nick O'Leary 2017-07-08 21:16:52 +01:00
parent ba6209ba54
commit fc9906624e
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -361,6 +361,10 @@ RED.deploy = (function() {
} }
deployInflight = true; deployInflight = true;
$("#header-shade").show();
$("#editor-shade").show();
$("#palette-shade").show();
$("#sidebar-shade").show();
$.ajax({ $.ajax({
url:"flows", url:"flows",
type: "POST", type: "POST",
@ -424,6 +428,10 @@ RED.deploy = (function() {
setTimeout(function() { setTimeout(function() {
$(".deploy-button-content").css('opacity',1); $(".deploy-button-content").css('opacity',1);
$(".deploy-button-spinner").hide(); $(".deploy-button-spinner").hide();
$("#header-shade").hide();
$("#editor-shade").hide();
$("#palette-shade").hide();
$("#sidebar-shade").hide();
},delta); },delta);
}); });
} }