diff options
author | slhale <sarah.hale@nasa.gov> | 2015-08-29 02:22:07 +0300 |
---|---|---|
committer | slhale <sarah.hale@nasa.gov> | 2015-08-29 02:22:07 +0300 |
commit | cebdf24666e1670385d2583612b19f7b62fb390a (patch) | |
tree | 0bb7f9637f7a900cbef16ca6fb2cfed58566d28f | |
parent | 15152d26f86abea7879a5b7f6d758720c8e7c214 (diff) |
[Plot] Only highlight legend if multipleinspector
Legend items will only be highlighted when
selected for inspection if there are more
than one legend item in the plot.
-rw-r--r-- | platform/features/plot/src/PlotController.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/platform/features/plot/src/PlotController.js b/platform/features/plot/src/PlotController.js index fe98fb806..261a8de95 100644 --- a/platform/features/plot/src/PlotController.js +++ b/platform/features/plot/src/PlotController.js @@ -166,13 +166,14 @@ define( } // Determines if the legend item is being inspected. If so, the class - // is 'inspected' + // is 'inspected' -- unless that is the only legend item for the plot function getInspectedClass(telemetryObject) { if ($scope.ngModel && $scope.ngModel.inspectionObjects && - $scope.ngModel.inspectionObjects.indexOf(telemetryObject) !== -1) { + $scope.ngModel.inspectionObjects.indexOf(telemetryObject) !== -1 && + self.modeOptions.getModeHandler().getSubPlots()[0].telemetryObjects.length > 1) { return "inspected"; - } + } } this.getInspectedClass = getInspectedClass; |