mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 07:31:07 +01:00
Notify installed plugins from the Palette Manager
This commit is contained in:
@@ -172,9 +172,10 @@ function installModule(module,version,url) {
|
||||
if (info.pending_version) {
|
||||
events.emit("runtime-event",{id:"node/upgraded",retain:false,payload:{module:info.name,version:info.pending_version}});
|
||||
} else {
|
||||
if (!info.nodes.length && info.plugins.length) {
|
||||
if (info.plugins.length) {
|
||||
events.emit("runtime-event",{id:"plugin/added",retain:false,payload:info.plugins});
|
||||
} else {
|
||||
}
|
||||
if (info.nodes.length) {
|
||||
events.emit("runtime-event",{id:"node/added",retain:false,payload:info.nodes});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user