From 00f5f8b2a03016bcae76d1d3e17738f7c9329185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 17 Aug 2015 21:20:09 +0200 Subject: [PATCH] feat(mixed datasource): polishing feature, making sure everything works, #436 --- public/app/features/templating/editorCtrl.js | 5 +- public/app/partials/metrics.html | 4 +- .../plugins/datasource/grafana/datasource.js | 1 + .../plugins/datasource/grafana/directives.js | 13 ++++ .../grafana/partials/query.editor.html | 66 +++++++++++++++---- .../graphite/partials/query.editor.html | 32 ++++----- 6 files changed, 84 insertions(+), 37 deletions(-) create mode 100644 public/app/plugins/datasource/grafana/directives.js diff --git a/public/app/features/templating/editorCtrl.js b/public/app/features/templating/editorCtrl.js index f48452e4569..65b06f3ceb3 100644 --- a/public/app/features/templating/editorCtrl.js +++ b/public/app/features/templating/editorCtrl.js @@ -23,7 +23,10 @@ function (angular, _) { $scope.init = function() { $scope.editor = { index: 0 }; - $scope.datasources = datasourceSrv.getMetricSources(); + $scope.datasources = _.filter(datasourceSrv.getMetricSources(), function(ds) { + return !ds.meta.builtIn; + }); + $scope.variables = templateSrv.variables; $scope.reset(); diff --git a/public/app/partials/metrics.html b/public/app/partials/metrics.html index 4aaffed9791..215bc2dd945 100644 --- a/public/app/partials/metrics.html +++ b/public/app/partials/metrics.html @@ -6,12 +6,12 @@
- -