Expressions: Add option to disable feature (#30541)

* Expressions: Add option to disable feature

* Apply suggestions from code review

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
This commit is contained in:
Sofia Papagiannaki
2021-01-22 19:27:33 +02:00
committed by GitHub
parent 5d52e50f6f
commit 9ada4b6052
15 changed files with 99 additions and 28 deletions

View File

@@ -315,7 +315,7 @@ export class QueryGroup extends PureComponent<Props, State> {
</Button>
)}
{isAddingMixed && this.renderMixedPicker()}
{this.isExpressionsSupported(dsSettings) && (
{config.expressionsEnabled && this.isExpressionsSupported(dsSettings) && (
<Tooltip content="Experimental feature: queries could stop working in next version" placement="right">
<Button
icon="plus"