Additional query editor row tweaks

This commit is contained in:
Torkel Ödegaard
2019-01-17 13:15:25 +01:00
parent cc4564cf8b
commit f041928e58
2 changed files with 8 additions and 0 deletions

View File

@@ -128,6 +128,10 @@ export class QueryEditorRow extends PureComponent<Props, State> {
angularScope.toggleEditorMode();
this.angularQueryEditor.digest();
}
if (this.state.isCollapsed) {
this.setState({ isCollapsed: false });
}
};
get hasTextEditMode() {

View File

@@ -391,6 +391,10 @@ export class GraphiteQueryCtrl extends QueryCtrl {
this.paused = false;
this.panelCtrl.refresh();
}
getCollapsedText() {
return this.target.target;
}
}
function mapToDropdownOptions(results) {