Просмотр исходного кода

fix(threshold): remove old threshold properties

Torkel Ödegaard 9 лет назад
Родитель
Сommit
2639c38912
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      public/app/features/dashboard/dashboardSrv.js

+ 6 - 0
public/app/features/dashboard/dashboardSrv.js

@@ -514,6 +514,12 @@ function (angular, $, _, moment) {
               panel.thresholds.push(t1);
             }
           }
+
+          delete panel.grid.threshold1;
+          delete panel.grid.threshold1Color;
+          delete panel.grid.threshold2;
+          delete panel.grid.threshold2Color;
+          delete panel.grid.thresholdLine;
         });
       }