From c1d592b72cb8bf9dcc75a4e5e83f0a46bc6d86ca Mon Sep 17 00:00:00 2001 From: Mitsuhiro Tanda Date: Fri, 23 Oct 2015 09:58:42 +0900 Subject: [PATCH] fix, call linkToPrometheus() directly --- .../plugins/datasource/prometheus/partials/query.editor.html | 2 +- public/app/plugins/datasource/prometheus/query_ctrl.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/public/app/plugins/datasource/prometheus/partials/query.editor.html b/public/app/plugins/datasource/prometheus/partials/query.editor.html index fe3894a1ef0..75c432862ad 100644 --- a/public/app/plugins/datasource/prometheus/partials/query.editor.html +++ b/public/app/plugins/datasource/prometheus/partials/query.editor.html @@ -111,7 +111,7 @@
  • - +
  • diff --git a/public/app/plugins/datasource/prometheus/query_ctrl.js b/public/app/plugins/datasource/prometheus/query_ctrl.js index 8fc9ae0d6a3..bbbaff4aa56 100644 --- a/public/app/plugins/datasource/prometheus/query_ctrl.js +++ b/public/app/plugins/datasource/prometheus/query_ctrl.js @@ -14,7 +14,6 @@ function (angular, _) { target.expr = target.expr || ''; target.intervalFactor = target.intervalFactor || 2; - target.prometheusLink = $scope.linkToPrometheus(); $scope.metric = ''; $scope.resolutions = _.map([1,2,3,4,5,10], function(f) { @@ -28,7 +27,6 @@ function (angular, _) { }; $scope.refreshMetricData = function() { - $scope.target.prometheusLink = $scope.linkToPrometheus(); if (!_.isEqual($scope.oldTarget, $scope.target)) { $scope.oldTarget = angular.copy($scope.target); $scope.get_data();