Remove disabled node types from QuickAddDialog list

This commit is contained in:
GogoVega 2024-11-06 17:28:51 +01:00
parent 54bf3f4402
commit abe0b60bf7
No known key found for this signature in database
GPG Key ID: E1E048B63AC5AC2B

View File

@ -382,7 +382,7 @@ RED.typeSearch = (function() {
var items = []; var items = [];
RED.nodes.registry.getNodeTypes().forEach(function(t) { RED.nodes.registry.getNodeTypes().forEach(function(t) {
var def = RED.nodes.getType(t); var def = RED.nodes.getType(t);
if (def.category !== 'config' && t !== 'unknown' && t !== 'tab') { if (def.set.enabled && def.category !== 'config' && t !== 'unknown' && t !== 'tab') {
items.push({type:t,def: def, label:getTypeLabel(t,def)}); items.push({type:t,def: def, label:getTypeLabel(t,def)});
} }
}); });