mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Provide notification when new flows deployed in the background
This commit is contained in:
@@ -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."
|
||||
|
@@ -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});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user