Flux: use monaco query editor (#26179)

This commit is contained in:
Ryan McKinley
2020-07-10 10:07:36 -07:00
committed by GitHub
parent c1ede4fc71
commit 33acf4c056
3 changed files with 113 additions and 36 deletions

View File

@@ -62,6 +62,13 @@ export default class InfluxDatasource extends DataSourceWithBackend<InfluxQuery,
return from(this.classicQuery(request));
}
getQueryDisplayText(query: InfluxQuery) {
if (this.is2x) {
return query.query;
}
return new InfluxQueryModel(query).render(false);
}
/**
* Only applied on flux queries
*/