mirror of
https://github.com/node-red/node-red
synced 2024-11-21 15:43:16 +00:00
Fix setModulePendingUpdated
with plugins
This commit is contained in:
parent
42382e1a03
commit
443492d6eb
@ -73,7 +73,13 @@ RED.nodes = (function() {
|
||||
|
||||
var exports = {
|
||||
setModulePendingUpdated: function(module,version) {
|
||||
moduleList[module].pending_version = version;
|
||||
if (!!RED.plugins.getModule(module)) {
|
||||
// The module updated is a plugin
|
||||
RED.plugins.getModule(module).pending_version = version;
|
||||
} else {
|
||||
moduleList[module].pending_version = version;
|
||||
}
|
||||
|
||||
RED.events.emit("registry:module-updated",{module:module,version:version});
|
||||
},
|
||||
getModule: function(module) {
|
||||
|
Loading…
Reference in New Issue
Block a user