diff --git a/public/app/features/dashboard/panel_editor/QueryEditorRow.tsx b/public/app/features/dashboard/panel_editor/QueryEditorRow.tsx index 0dc53e69be6..d27e0dead57 100644 --- a/public/app/features/dashboard/panel_editor/QueryEditorRow.tsx +++ b/public/app/features/dashboard/panel_editor/QueryEditorRow.tsx @@ -128,6 +128,10 @@ export class QueryEditorRow extends PureComponent { angularScope.toggleEditorMode(); this.angularQueryEditor.digest(); } + + if (this.state.isCollapsed) { + this.setState({ isCollapsed: false }); + } }; get hasTextEditMode() { diff --git a/public/app/plugins/datasource/graphite/query_ctrl.ts b/public/app/plugins/datasource/graphite/query_ctrl.ts index fa908c5e955..b89e84d23a7 100644 --- a/public/app/plugins/datasource/graphite/query_ctrl.ts +++ b/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) {