mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Palette editor fixes (#1033)
* ensure remove button is only enabled for local modules when refreshing palette editor * ensure local field is propagated to the nodes when a new module is added to the registry
This commit is contained in:
committed by
Nick O'Leary
parent
9790211891
commit
44a0f1b505
@@ -255,7 +255,9 @@ RED.palette.editor = (function() {
|
||||
nodeEntry.removeButton.hide();
|
||||
} else {
|
||||
nodeEntry.enableButton.removeClass('disabled');
|
||||
nodeEntry.removeButton.show();
|
||||
if (moduleInfo.local) {
|
||||
nodeEntry.removeButton.show();
|
||||
}
|
||||
if (activeTypeCount === 0) {
|
||||
nodeEntry.enableButton.html(RED._('palette.editor.enableall'));
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user