mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 06:38:17 +00:00
[Search] Fix to pass test
Changing TreeNodeController's isSelected function back to original, so that it doesn't break tests.
This commit is contained in:
@ -165,13 +165,15 @@ define(
|
|||||||
* @returns true if this should be highlighted
|
* @returns true if this should be highlighted
|
||||||
*/
|
*/
|
||||||
isSelected: function () {
|
isSelected: function () {
|
||||||
//return isSelected;
|
return isSelected;
|
||||||
|
|
||||||
// Modification for compatibility with search.
|
// Modification for compatibility with search.
|
||||||
// If this object is the same as the model's selected object
|
// If this object is the same as the model's selected object
|
||||||
// Same being them having the same ID (this allows different
|
// Same being them having the same ID (this allows different
|
||||||
// instances of the same thing to be recognized as the same)
|
// instances of the same thing to be recognized as the same)
|
||||||
return getId($scope.ngModel.selectedObject) === getId($scope.domainObject);
|
//return getId($scope.ngModel.selectedObject) === getId($scope.domainObject);
|
||||||
|
|
||||||
|
// Not using modified version now because it breaks tests.
|
||||||
|
|
||||||
// TODO: Check to make sure this change doesn't break
|
// TODO: Check to make sure this change doesn't break
|
||||||
// anything/find a better way to do this
|
// anything/find a better way to do this
|
||||||
|
Reference in New Issue
Block a user