Browse Source

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 9 years ago
parent
commit
87027b0f77
1 changed files with 4 additions and 0 deletions
  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() {