Skip to content

Commit

Permalink
Merge pull request #417 from VirtualFlyBrain/fix/416
Browse files Browse the repository at this point in the history
search For population
  • Loading branch information
Robbie1977 authored Sep 20, 2019
2 parents c7a6466 + 0661084 commit fb59c0b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions components/interface/FocusTerm.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,23 @@ export default class FocusTerm extends React.Component {
);
}
});
} else {
var variable = GEPPETTO.ModelFactory.getTopLevelVariablesById([classId])[0]
var allQueries = GEPPETTO.ModelFactory.getMatchingQueries(variable.getType(), undefined);
if (allQueries.length > 0) {
focusSubMenu.push(
{
label: "Search for",
icon: "",
action: "",
position: "left",
dynamicListInjector: {
handlerAction: "subMenuGrouping",
parameters: [{ variable: variable, allQueries: allQueries }]
}
}
);
}
}
}
}
Expand Down

0 comments on commit fb59c0b

Please sign in to comment.