mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 06:38:17 +00:00
[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:
@ -43,7 +43,8 @@ define(function () {
|
|||||||
// On initialization, fill the scope's types with type keys
|
// On initialization, fill the scope's types with type keys
|
||||||
types.forEach(function (type) {
|
types.forEach(function (type) {
|
||||||
// We only want some types, the ones that are probably human readable
|
// 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.types.push(type);
|
||||||
$scope.ngModel.checked[type.key] = false;
|
$scope.ngModel.checked[type.key] = false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user