Swap manage/install-all buttons in dependency notification

This commit is contained in:
Nick O'Leary
2025-06-25 16:56:31 +01:00
parent 5eedbf6556
commit 052533962c

View File

@@ -2068,21 +2068,9 @@ RED.nodes = (function() {
// We have module hint list from imported global-config
// Provide option to install missing modules
notificationOptions.buttons = [
{
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.installAll"),
class: "pull-left",
class: "primary",
click: function(e) {
unknownNotification.close();
@@ -2094,6 +2082,18 @@ RED.nodes = (function() {
}, {}),
});
}
},
{
text: RED._("palette.editor.manageModules"),
class: "pull-left",
click: function(e) {
unknownNotification.close();
RED.actions.invoke('core:manage-palette', {
view: 'install',
filter: '"' + missingModules.join('", "') + '"'
});
}
}
]
let moduleList = $("<ul>");