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

Removed pointless setting "selectable" (interactive)

Torkel Ödegaard 12 лет назад
Родитель
Сommit
80c5f99f3b

+ 4 - 4
src/app/directives/grafanaGraph.js

@@ -130,15 +130,15 @@ function (angular, $, kbn, moment, _) {
               borderWidth: 0,
               hoverable: true,
               color: '#c8c8c8'
+            },
+            selection: {
+              mode: "x",
+              color: '#666'
             }
           };
 
           addAnnotations(options);
 
-          if(scope.panel.interactive) {
-            options.selection = { mode: "x", color: '#666' };
-          }
-
           // when rendering stacked bars, we need to ensure each point that has data is zero-filled
           // so that the stacking happens in the proper order
           var required_times = [];

+ 0 - 4
src/app/panels/graphite/module.js

@@ -179,10 +179,6 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
        * legend:: Display the legond
        */
       legend        : true,
-      /** @scratch /panels/histogram/3
-       * interactive:: Enable click-and-drag to zoom functionality
-       */
-      interactive   : true,
       /** @scratch /panels/histogram/3
        * ==== Transformations
        * timezone:: Correct for browser timezone?. Valid values: browser, utc

+ 0 - 3
src/app/panels/graphite/styleEditor.html

@@ -19,9 +19,6 @@
     <div class="editor-option">
       <label class="small">Points</label><input type="checkbox" ng-model="panel.points" ng-checked="panel.points" ng-change="render()">
     </div>
-    <div class="editor-option">
-      <label class="small">Selectable</label><input type="checkbox" ng-model="panel.interactive" ng-checked="panel.interactive">
-    </div>
   </div>
   <div class="section">
     <h5>Axis</h5>