Просмотр исходного кода

Fix for exclusive series toggling (hold down CTRL, SHIFT or META key) and left click a series for exclusive toggling
CTRL does not work on MAC OSX but SHIFT or META should (depending on browser) (Closes #350, Fixes #472)

Torkel Ödegaard 11 лет назад
Родитель
Сommit
ea84149c87
2 измененных файлов с 4 добавлено и 2 удалено
  1. 2 0
      CHANGELOG.md
  2. 2 2
      src/app/panels/graphite/module.js

+ 2 - 0
CHANGELOG.md

@@ -20,6 +20,8 @@ vNext
 - Legend Current value did not display when value was zero, Fixes #460
 - Fix to series toggling bug that caused annotations to be hidden when toggling (hiding) series. Fixes #328
 - Fix for graphite function selection menu that some times draws outside screen. It now displays upward (Fixes #293)
+- Fix for exclusive series toggling (hold down CTRL, SHIFT or META key) and left click a series for exclusive toggling
+  CTRL does not work on MAC OSX but SHIFT or META should (depending on browser) (Closes #350, Fixes #472)
 
 # 1.5.4 (2014-05-13)
 ### New features and improvements

+ 2 - 2
src/app/panels/graphite/module.js

@@ -264,7 +264,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
         .then($scope.dataHandler)
         .then(null, function(err) {
           $scope.panelMeta.loading = false;
-          $scope.panel.error = err.message || "Graphite HTTP Request Error";
+          $scope.panel.error = err.message || "Timeseries data request error";
           $scope.inspector.error = err;
           $scope.render([]);
         });
@@ -356,7 +356,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
         $scope.hiddenSeries[serie.alias] = true;
       }
 
-      if (event.ctrlKey) {
+      if (event.ctrlKey || event.metaKey || event.shiftKey) {
         $scope.toggleSeriesExclusiveMode(serie);
       }