Hide common entries when filtering typeSearch

This commit is contained in:
Nick O'Leary 2017-01-01 21:59:09 +00:00
parent 18a519f9ed
commit 061cc908a7
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,7 @@ RED.typeSearch = (function() {
if (activeFilter === "" ) {
return true;
}
if (data.recent) {
if (data.recent || data.common) {
return false;
}
return (activeFilter==="")||(data.index.indexOf(activeFilter) > -1);
@ -266,6 +266,7 @@ RED.typeSearch = (function() {
for(i=0;i<common.length;i++) {
item = {
type: common[i],
common: true,
def: RED.nodes.getType(common[i])
};
item.label = getTypeLabel(item.type,item.def);