Browse Source

Additional query editor row tweaks

Torkel Ödegaard 7 years ago
parent
commit
f041928e58

+ 4 - 0
public/app/features/dashboard/panel_editor/QueryEditorRow.tsx

@@ -128,6 +128,10 @@ export class QueryEditorRow extends PureComponent<Props, State> {
       angularScope.toggleEditorMode();
       this.angularQueryEditor.digest();
     }
+
+    if (this.state.isCollapsed) {
+      this.setState({ isCollapsed: false });
+    }
   };
 
   get hasTextEditMode() {

+ 4 - 0
public/app/plugins/datasource/graphite/query_ctrl.ts

@@ -391,6 +391,10 @@ export class GraphiteQueryCtrl extends QueryCtrl {
     this.paused = false;
     this.panelCtrl.refresh();
   }
+
+  getCollapsedText() {
+    return this.target.target;
+  }
 }
 
 function mapToDropdownOptions(results) {