mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add node context/flow/global
This commit is contained in:
@@ -20,6 +20,7 @@ var when = require("when");
|
||||
var Flow = require('./Flow');
|
||||
|
||||
var typeRegistry = require("../registry");
|
||||
var context = require("../context")
|
||||
var credentials = require("../credentials");
|
||||
|
||||
var flowUtil = require("./util");
|
||||
@@ -116,6 +117,7 @@ function setConfig(_config,type,muteLog) {
|
||||
return credentials.clean(activeConfig).then(function() {
|
||||
if (started) {
|
||||
return stop(type,diff,muteLog).then(function() {
|
||||
context.clean(activeFlowConfig);
|
||||
start(type,diff,muteLog);
|
||||
}).otherwise(function(err) {
|
||||
})
|
||||
|
@@ -158,7 +158,7 @@ module.exports = {
|
||||
changed[removed[id].z] = newConfig.allNodes[removed[id].z];
|
||||
if (changed[removed[id].z].type === "subflow") {
|
||||
changedSubflows[removed[id].z] = changed[removed[id].z];
|
||||
delete removed[id];
|
||||
//delete removed[id];
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user