Change icon, remove the widget color and ensure updateStatus is called on events

This commit is contained in:
GogoVega 2024-11-07 15:32:06 +01:00
parent d048d2cf41
commit 69e4a02b28
No known key found for this signature in database
GPG Key ID: E1E048B63AC5AC2B
2 changed files with 4 additions and 4 deletions

View File

@ -649,6 +649,7 @@ RED.palette.editor = (function() {
if (!/^subflow:/.test(nodeType)) {
var ns = RED.nodes.registry.getNodeSetForType(nodeType);
refreshNodeModule(ns.module);
refreshUpdateStatus();
}
});
RED.events.on('registry:node-type-removed', function(nodeType) {
@ -724,6 +725,7 @@ RED.palette.editor = (function() {
_refreshNodeModule(module);
}
refreshUpdateStatus();
for (var i=0;i<filteredList.length;i++) {
if (filteredList[i].info.id === module) {
var installButton = filteredList[i].elements.installButton;
@ -1331,6 +1333,7 @@ RED.palette.editor = (function() {
if (e) {
nodeList.editableList('removeItem', e);
delete nodeEntries[entry.name];
refreshUpdateStatus();
}
// We assume that a plugin that implements onremove
@ -1521,7 +1524,7 @@ RED.palette.editor = (function() {
if (opts.count) {
RED.statusBar.show("update");
updateStatusWidget.empty();
$('<span><i class="fa fa-cogs"></i> ' + opts.count + '</span>').appendTo(updateStatusWidget);
$('<span><i class="fa fa-cube"></i> ' + opts.count + '</span>').appendTo(updateStatusWidget);
} else {
RED.statusBar.hide("update");
}

View File

@ -309,7 +309,4 @@ button.red-ui-palette-editor-upload-button {
button.red-ui-update-status {
width: auto;
padding: 0 3px;
span {
color: var(--red-ui-text-color-warning);
}
}