mirror of
https://github.com/nasa/openmct.git
synced 2025-05-09 20:12:50 +00:00
[Search] Removed getObjectByID
Was no longer necissary with the current method of search() getting objects.
This commit is contained in:
parent
07e08c283a
commit
b35fddefc0
@ -120,6 +120,7 @@ define(function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
// Search the database using the user input from id "searchinput"
|
||||||
search: function () {
|
search: function () {
|
||||||
search2().then( function (c) {
|
search2().then( function (c) {
|
||||||
$scope.results = c;
|
$scope.results = c;
|
||||||
@ -133,14 +134,6 @@ define(function () {
|
|||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
|
||||||
getObjectByID: function (id) {
|
|
||||||
console.log('getObjectByID called');
|
|
||||||
objectService.getObjects([id]).then(function (out) {
|
|
||||||
console.log('object gotten by id', out[id]);
|
|
||||||
return out[id];
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user