Ver código fonte

Fix for graphite query letter assignment

Torkel Ödegaard 11 anos atrás
pai
commit
48eb2083f2

+ 1 - 1
src/app/controllers/graphiteTarget.js

@@ -15,7 +15,7 @@ function (angular, _, config, gfunc, Parser) {
 
     $scope.init = function() {
       $scope.target.target = $scope.target.target || '';
-      $scope.targetLetter = targetLetters[$scope.$index];
+      $scope.targetLetters = targetLetters;
 
       parseTarget();
     };

+ 1 - 1
src/app/partials/graphite/editor.html

@@ -41,7 +41,7 @@
 
       <ul class="grafana-segment-list">
 				<li class="grafana-target-segment" style="min-width: 15px; text-align: center">
-					{{targetLetter}}
+					{{targetLetters[$index]}}
         </li>
         <li>
           <a  class="grafana-target-segment"