Explorar el Código

fix(repeat panel): fixed issue with snapshoting a dashboard with repeated panels, Fixes #2352

Torkel Ödegaard hace 10 años
padre
commit
c7dafd4b42
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      public/app/features/dashboard/dynamicDashboardSrv.js

+ 4 - 0
public/app/features/dashboard/dynamicDashboardSrv.js

@@ -11,11 +11,15 @@ function (angular, _) {
     var self = this;
 
     this.init = function(dashboard) {
+      if (dashboard.snapshot) { return; }
+
       this.iteration = new Date().getTime();
       this.process(dashboard);
     };
 
     this.update = function(dashboard) {
+      if (dashboard.snapshot) { return; }
+
       this.iteration = this.iteration + 1;
       this.process(dashboard);
     };