mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Change icon, remove the widget color and ensure updateStatus is called on events
This commit is contained in:
parent
d048d2cf41
commit
69e4a02b28
@ -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");
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user