mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 16:15:42 -06:00
DashboardQueryEditor: Run query after selecting source panel (#32383)
This commit is contained in:
parent
52ff968a72
commit
a4b0ad3937
@ -276,7 +276,14 @@ export class QueryGroup extends PureComponent<Props, State> {
|
||||
const { data } = this.state;
|
||||
|
||||
if (isSharedDashboardQuery(dsSettings.name)) {
|
||||
return <DashboardQueryEditor queries={options.queries} panelData={data} onChange={this.onQueriesChange} />;
|
||||
return (
|
||||
<DashboardQueryEditor
|
||||
queries={options.queries}
|
||||
panelData={data}
|
||||
onChange={this.onQueriesChange}
|
||||
onRunQueries={onRunQueries}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
|
@ -21,6 +21,7 @@ interface Props {
|
||||
queries: DataQuery[];
|
||||
panelData: PanelData;
|
||||
onChange: (queries: DataQuery[]) => void;
|
||||
onRunQueries: () => void;
|
||||
}
|
||||
|
||||
type State = {
|
||||
@ -97,6 +98,7 @@ export class DashboardQueryEditor extends PureComponent<Props, State> {
|
||||
panelId: id,
|
||||
} as DashboardQuery,
|
||||
]);
|
||||
this.props.onRunQueries();
|
||||
};
|
||||
|
||||
renderQueryData(editURL: string) {
|
||||
|
Loading…
Reference in New Issue
Block a user