Merge pull request #4946 from GogoVega/fix-quickAddDialog
Some checks failed
Run tests / build (18) (push) Has been cancelled
Run tests / build (20) (push) Has been cancelled
Run tests / build (22) (push) Has been cancelled

Remove disabled node types from QuickAddDialog list
This commit is contained in:
Nick O'Leary 2024-11-08 13:46:19 +00:00 committed by GitHub
commit 604c70ec04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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