mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Flow.registerType should indicate if type was missing or not
This commit is contained in:
@@ -462,8 +462,10 @@ Flow.prototype.typeRegistered = function(type) {
|
||||
if (this.missingTypes.length === 0 && this.started) {
|
||||
this.start();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -34,8 +34,7 @@ var activeConfig = [];
|
||||
var activeConfigNodes = {};
|
||||
|
||||
events.on('type-registered',function(type) {
|
||||
if (activeFlow) {
|
||||
activeFlow.typeRegistered(type);
|
||||
if (activeFlow && activeFlow.typeRegistered(type)) {
|
||||
log.info("Missing type registered: "+type);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user