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

fix(repeat panel): fix for unwanted unsaved changes warnings when using repeat panel, #2364

Torkel Ödegaard 10 лет назад
Родитель
Сommit
0a59d6ab2f
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      public/app/features/dashboard/unsavedChangesSrv.js

+ 3 - 0
public/app/features/dashboard/unsavedChangesSrv.js

@@ -80,6 +80,9 @@ function(angular, _) {
           // remove scopedVars
           panel.scopedVars = null;
 
+          // ignore span changes
+          panel.span = null;
+
           // ignore panel legend sort
           if (panel.legend)  {
             delete panel.legend.sort;