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

pull/74352/head
kay delaney 2 years ago committed by GitHub
parent 3a90e2d13c
commit 3777ae0275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      public/app/features/variables/adhoc/AdHocVariableEditor.tsx

@ -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}

Loading…
Cancel
Save