Quellcode durchsuchen

Fixed issue where series color or axis change would note take immediate effect (needed a full refresh).

Torkel Ödegaard vor 12 Jahren
Ursprung
Commit
76f4e3c5b4
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 3 2
      src/app/panels/graphite/timeSeries.js

+ 3 - 2
src/app/panels/graphite/timeSeries.js

@@ -10,13 +10,14 @@ function (_) {
     this.datapoints = opts.datapoints;
     this.info = opts.info;
     this.label = opts.info.alias;
-    this.color = opts.info.color;
-    this.yaxis = opts.info.yaxis;
   };
 
   ts.ZeroFilled.prototype.getFlotPairs = function (fillStyle) {
     var result = [];
 
+    this.color = this.info.color;
+    this.yaxis = this.info.yaxis;
+
     this.info.total = 0;
     this.info.max = null;
     this.info.min = 212312321312;