From f041928e580a8ed131ae845a5334b2b2f43af420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 17 Jan 2019 13:15:25 +0100 Subject: [PATCH] Additional query editor row tweaks --- public/app/features/dashboard/panel_editor/QueryEditorRow.tsx | 4 ++++ public/app/plugins/datasource/graphite/query_ctrl.ts | 4 ++++ 2 files changed, 8 insertions(+) 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) {