Procházet zdrojové kódy

Full metric description (#7493)

graph: add full metric description for graph-legend-alias title
Vladimir Kolobaev před 9 roky
rodič
revize
6eda5604d2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      public/app/plugins/panel/graph/legend.js

+ 1 - 1
public/app/plugins/panel/graph/legend.js

@@ -167,7 +167,7 @@ function (angular, _, $) {
             html += '<i class="fa fa-minus pointer" style="color:' + series.color + '"></i>';
             html += '<i class="fa fa-minus pointer" style="color:' + series.color + '"></i>';
             html += '</div>';
             html += '</div>';
 
 
-            html += '<a class="graph-legend-alias pointer">' + _.escape(series.label) + '</a>';
+            html += '<a class="graph-legend-alias pointer" title="' + _.escape(series.label) + '">' + _.escape(series.label) + '</a>';
 
 
             if (panel.legend.values) {
             if (panel.legend.values) {
               var avg = series.formatValue(series.stats.avg);
               var avg = series.formatValue(series.stats.avg);