Provide notification when new flows deployed in the background

This commit is contained in:
Nick O'Leary
2017-03-17 21:29:03 +00:00
parent fb24dca019
commit b9379f2ddf
5 changed files with 54 additions and 4 deletions

View File

@@ -127,6 +127,7 @@
},
"confirm": {
"button": {
"ignore": "Ignore",
"confirm": "Confirm deploy",
"review": "Review differences",
"cancel": "Cancel",
@@ -137,6 +138,7 @@
"unknown": "The workspace contains some unknown node types:",
"confirm": "Are you sure you want to deploy?",
"conflict": "The server is running a more recent set of flows.",
"backgroundUpdate": "The flows on the server have been updated.",
"conflictChecking": "Checking to see if the changes can be merged automatically",
"conflictAutoMerge": "The changes include no conflicts and can be merged automatically.",
"conflictManualMerge": "The changes include conflicts that must be resolved before they can be deployed."

View File

@@ -135,10 +135,14 @@ function setFlows(_config,type,muteLog) {
if (started) {
return stop(type,diff,muteLog).then(function() {
context.clean(activeFlowConfig);
start(type,diff,muteLog);
start(type,diff,muteLog).then(function() {
events.emit("runtime-event",{id:"runtime-deploy",revision:flowRevision});
});
return flowRevision;
}).otherwise(function(err) {
})
} else {
events.emit("runtime-event",{id:"runtime-deploy",revision:flowRevision});
}
});
}