[Search] No searching root

Removed the root type from the search menu
types, so searches through the current UI
will not reutrn root objects.
This commit is contained in:
slhale 2015-08-17 14:32:23 -07:00
parent ce58aff18a
commit 3a932f5443

View File

@ -43,7 +43,8 @@ define(function () {
// On initialization, fill the scope's types with type keys
types.forEach(function (type) {
// We only want some types, the ones that are probably human readable
if (type.key && type.name) {
// Manually remove 'root', but not 'unknown'
if (type.key && type.name && type.key !== 'root') {
$scope.ngModel.types.push(type);
$scope.ngModel.checked[type.key] = false;
}