Explorar o código

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 %!s(int64=8) %!d(string=hai) anos
pai
achega
87027b0f77
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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() {