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

Do not collapse if there is only 1-3 queries #7836 (#7878)

Also has the side effect of new panels having not collapsed queries when
being created
Denis Doria 8 лет назад
Родитель
Сommit
87027b0f77
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      public/app/features/panel/query_editor_row.ts

+ 4 - 0
public/app/features/panel/query_editor_row.ts

@@ -29,6 +29,10 @@ export class QueryRowCtrl {
       delete this.target.isNew;
       this.toggleCollapse(false);
     }
+
+    if (this.panel.targets.length < 4) {
+      this.collapsed = false;
+    }
   }
 
   toggleHideQuery() {