From aa8f4af3395bd19405c79ba815bfae4aa9c52ae7 Mon Sep 17 00:00:00 2001 From: JeanCarl Bisson Date: Wed, 3 Jun 2020 10:33:35 -0700 Subject: [PATCH] Filter list of nodes on node type --- .../node_modules/@node-red/nodes/core/common/24-complete.html | 2 +- packages/node_modules/@node-red/nodes/core/common/25-catch.html | 2 +- .../node_modules/@node-red/nodes/core/common/25-status.html | 2 +- packages/node_modules/@node-red/nodes/core/common/60-link.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/node_modules/@node-red/nodes/core/common/24-complete.html b/packages/node_modules/@node-red/nodes/core/common/24-complete.html index 0919326de..5f8fb7ffe 100644 --- a/packages/node_modules/@node-red/nodes/core/common/24-complete.html +++ b/packages/node_modules/@node-red/nodes/core/common/24-complete.html @@ -56,7 +56,7 @@ search.searchBox("count",""); } else { var count = dirList.treeList("filter", function(item) { - return item.label.indexOf(val) > -1 + return item.label.indexOf(val) > -1 || item.node.type.indexOf(val) > -1 }); search.searchBox("count",count+" / "+candidateNodes.length); } diff --git a/packages/node_modules/@node-red/nodes/core/common/25-catch.html b/packages/node_modules/@node-red/nodes/core/common/25-catch.html index 066fb6ee2..cbe2fdd7a 100644 --- a/packages/node_modules/@node-red/nodes/core/common/25-catch.html +++ b/packages/node_modules/@node-red/nodes/core/common/25-catch.html @@ -71,7 +71,7 @@ search.searchBox("count",""); } else { var count = dirList.treeList("filter", function(item) { - return item.label.indexOf(val) > -1 + return item.label.indexOf(val) > -1 || item.node.type.indexOf(val) > -1 }); search.searchBox("count",count+" / "+candidateNodes.length); } diff --git a/packages/node_modules/@node-red/nodes/core/common/25-status.html b/packages/node_modules/@node-red/nodes/core/common/25-status.html index 00831330b..032977c71 100644 --- a/packages/node_modules/@node-red/nodes/core/common/25-status.html +++ b/packages/node_modules/@node-red/nodes/core/common/25-status.html @@ -59,7 +59,7 @@ search.searchBox("count",""); } else { var count = dirList.treeList("filter", function(item) { - return item.label.indexOf(val) > -1 + return item.label.indexOf(val) > -1 || item.node.type.indexOf(val) > -1 }); search.searchBox("count",count+" / "+candidateNodes.length); } diff --git a/packages/node_modules/@node-red/nodes/core/common/60-link.html b/packages/node_modules/@node-red/nodes/core/common/60-link.html index c3424830e..5cf1c409e 100644 --- a/packages/node_modules/@node-red/nodes/core/common/60-link.html +++ b/packages/node_modules/@node-red/nodes/core/common/60-link.html @@ -59,7 +59,7 @@ search.searchBox("count",""); } else { var count = treeList.treeList("filter", function(item) { - return item.label.indexOf(val) > -1 + return item.label.indexOf(val) > -1 || item.node.type.indexOf(val) > -1 }); search.searchBox("count",count+" / "+candidateNodes.length); }