(cherry picked from commit a4b0ad3937)
Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
This commit is contained in:
co-authored by
Torkel Ödegaard
parent
42d465e38a
commit
d33b1e6561
@@ -277,7 +277,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) {
|
||||
|
||||
Reference in New Issue
Block a user