mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Toggle edit mode works
This commit is contained in:
@@ -12,6 +12,7 @@ export class QueryRowCtrl {
|
||||
panel: any;
|
||||
collapsed: any;
|
||||
hideEditorRowActions: boolean;
|
||||
hasTextEditMode: boolean;
|
||||
|
||||
constructor() {
|
||||
this.panelCtrl = this.queryCtrl.panelCtrl;
|
||||
@@ -19,6 +20,10 @@ export class QueryRowCtrl {
|
||||
this.panel = this.panelCtrl.panel;
|
||||
this.hideEditorRowActions = this.panelCtrl.hideEditorRowActions;
|
||||
|
||||
if (this.hasTextEditMode) {
|
||||
this.panelCtrl.toggleEditorMode = this.toggleEditorMode.bind(this);
|
||||
}
|
||||
|
||||
if (!this.target.refId) {
|
||||
this.target.refId = this.panel.getNextQueryLetter();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user