AdHocVars: Allow selecting datasource variable from data source picker (#74192)

This commit is contained in:
kay delaney 2023-09-04 16:10:15 +01:00 committed by GitHub
parent 3a90e2d13c
commit 3777ae0275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,13 @@ export class AdHocVariableEditorUnConnected extends PureComponent<Props> {
<>
<VariableLegend>Ad-hoc options</VariableLegend>
<Field label="Data source" htmlFor="data-source-picker">
<DataSourcePicker current={variable.datasource} onChange={this.onDatasourceChanged} width={30} noDefault />
<DataSourcePicker
current={variable.datasource}
onChange={this.onDatasourceChanged}
width={30}
variables={true}
noDefault
/>
</Field>
{infoText ? <Alert title={infoText} severity="info" /> : null}