Toggle edit mode works

This commit is contained in:
Torkel Ödegaard
2019-01-16 17:53:40 +01:00
parent 166e5edebd
commit 6a66d462aa
3 changed files with 96 additions and 47 deletions

View File

@@ -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();
}