Allow core:manage-palette action to auto install modules

This commit is contained in:
GogoVega
2024-10-27 16:30:33 +01:00
parent 42af21c1a4
commit a81d6f3a89
3 changed files with 99 additions and 5 deletions

View File

@@ -2011,15 +2011,27 @@ RED.nodes = (function() {
// Provide option to install missing modules
notificationOptions.buttons = [
{
text: "Manage dependencies",
class:"primary",
text: RED._("palette.editor.manageModules"),
class: "primary",
click: function(e) {
unknownNotification.close();
RED.actions.invoke('core:manage-palette', {
view: 'install',
filter: '"' + missingModules.join('", "') + '"'
})
});
}
},
{
text: RED._("palette.editor.installEverything"),
class: "pull-left",
click: function(e) {
unknownNotification.close();
RED.actions.invoke('core:manage-palette', {
autoInstall: true,
modules: options.modules
});
}
}
]