Skip to content

Commit

Permalink
Merge pull request #419 from VirtualFlyBrain/development
Browse files Browse the repository at this point in the history
latest fixes from Development
  • Loading branch information
Robbie1977 authored Sep 20, 2019
2 parents b7ad40b + 4252877 commit 5509b65
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 5509b65

Please sign in to comment.