Pārlūkot izejas kodu

fix: Graphite issue with toggle edit mode in query editor, fixes #8377

Torkel Ödegaard 8 gadi atpakaļ
vecāks
revīzija
8b11712f5e

+ 7 - 1
CHANGELOG.md

@@ -1,3 +1,9 @@
+# 4.3.0-stable (unreleased)
+
+## Bug fixes
+
+* **Graphite**: Fixed issue with Toggle edit mode did in query editor [#8377](https://github.com/grafana/grafana/issues/8377)
+
 # 4.3.0-beta1 (2017-05-12)
 
 ## Enhancements
@@ -34,7 +40,7 @@
 * **Server**: Support listening on a UNIX socket [#4030](https://github.com/grafana/grafana/issues/4030), thx [@mitjaziv](https://github.com/mitjaziv)
 * **Graph**: Support log scaling for values smaller 1 [#5278](https://github.com/grafana/grafana/issues/5278)
 * **InfluxDB**: Slow 'select measurement' rendering for InfluxDB [#2524](https://github.com/grafana/grafana/issues/2524), thx [@sbhenderson](https://github.com/sbhenderson)
-* **Config**: Configurable signout menu activation [#7968](https://github.com/grafana/grafana/pull/7968), thx [@seuf](https://github.com/seuf) 
+* **Config**: Configurable signout menu activation [#7968](https://github.com/grafana/grafana/pull/7968), thx [@seuf](https://github.com/seuf)
 
 ## Fixes
 * **Table Panel**: Fixed annotation display in table panel, [#8023](https://github.com/grafana/grafana/issues/8023)

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

@@ -28,6 +28,7 @@ export class GraphiteQueryCtrl extends QueryCtrl {
   }
 
   toggleEditorMode() {
+    this.target.textEditor = !this.target.textEditor;
     this.parseTarget();
   }