From 456b07b766b8e1e31a39f25c58855ba742e1bfc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 18 Apr 2017 17:28:39 +0200 Subject: [PATCH] annotations: removing wip stuff so I can merge to master --- .../app/features/annotations/partials/editor.html | 14 +++++++------- public/app/plugins/panel/graph/graph.ts | 12 ++++++------ public/app/plugins/panel/graph/module.ts | 6 ------ 3 files changed, 13 insertions(+), 19 deletions(-) diff --git a/public/app/features/annotations/partials/editor.html b/public/app/features/annotations/partials/editor.html index 9e8d5cac2d6..5acc2bc60b4 100644 --- a/public/app/features/annotations/partials/editor.html +++ b/public/app/features/annotations/partials/editor.html @@ -77,17 +77,17 @@
-
- Show in -
- -
-
+ + + + + + + label-class="width-7">
diff --git a/public/app/plugins/panel/graph/graph.ts b/public/app/plugins/panel/graph/graph.ts index d6e054152ec..cfc31867bdb 100755 --- a/public/app/plugins/panel/graph/graph.ts +++ b/public/app/plugins/panel/graph/graph.ts @@ -592,9 +592,9 @@ coreModule.directive('grafanaGraph', function($rootScope, timeSrv, popoverSrv) { elem.bind("plotselected", function (event, ranges) { if (ranges.ctrlKey || ranges.metaKey) { - scope.$apply(() => { - eventManager.updateTime(ranges.xaxis); - }); + // scope.$apply(() => { + // eventManager.updateTime(ranges.xaxis); + // }); } else { scope.$apply(function() { timeSrv.setTime({ @@ -610,9 +610,9 @@ coreModule.directive('grafanaGraph', function($rootScope, timeSrv, popoverSrv) { // Skip if range selected (added in "plotselected" event handler) let isRangeSelection = pos.x !== pos.x1; if (!isRangeSelection) { - scope.$apply(() => { - eventManager.updateTime({from: pos.x, to: null}); - }); + // scope.$apply(() => { + // eventManager.updateTime({from: pos.x, to: null}); + // }); } } }); diff --git a/public/app/plugins/panel/graph/module.ts b/public/app/plugins/panel/graph/module.ts index aa2155f258b..e98d1c25ad7 100644 --- a/public/app/plugins/panel/graph/module.ts +++ b/public/app/plugins/panel/graph/module.ts @@ -144,7 +144,6 @@ class GraphCtrl extends MetricsPanelCtrl { actions.push({text: 'Export CSV (series as rows)', click: 'ctrl.exportCsv()'}); actions.push({text: 'Export CSV (series as columns)', click: 'ctrl.exportCsvColumns()'}); actions.push({text: 'Toggle legend', click: 'ctrl.toggleLegend()'}); - actions.push({ text: 'Add Annotation', click: 'ctrl.enableAddAnnotationMode()' }); } issueQueries(datasource) { @@ -301,11 +300,6 @@ class GraphCtrl extends MetricsPanelCtrl { this.refresh(); } - enableAddAnnotationMode() { - // placehoder for some other way to teach users - alert('selection region while holding down CTRL or CMD'); - } - legendValuesOptionChanged() { var legend = this.panel.legend; legend.values = legend.min || legend.max || legend.avg || legend.current || legend.total;