Commit 40e5c4f8 by Torkel Ödegaard Committed by GitHub

Prometheus: Minor style fix (#17773)

* Prometheus: Minor style fix

* Updated snapshot
parent 7acbb94b
......@@ -98,18 +98,16 @@ export class PromQueryEditor extends PureComponent<Props, State> {
return (
<div>
<div className="gf-form-input" style={{ height: 'initial' }}>
<PromQueryField
datasource={datasource}
query={query}
onRunQuery={this.onRunQuery}
onChange={this.onFieldChange}
history={[]}
panelData={panelData}
queryResponse={queryResponse}
datasourceStatus={DataSourceStatus.Connected} // TODO: replace with real DataSourceStatus
/>
</div>
<PromQueryField
datasource={datasource}
query={query}
onRunQuery={this.onRunQuery}
onChange={this.onFieldChange}
history={[]}
panelData={panelData}
queryResponse={queryResponse}
datasourceStatus={DataSourceStatus.Connected} // TODO: replace with real DataSourceStatus
/>
<div className="gf-form-inline">
<div className="gf-form">
......
......@@ -2,33 +2,24 @@
exports[`Render PromQueryEditor with basic options should render 1`] = `
<div>
<div
className="gf-form-input"
style={
<PromQueryField
datasource={
Object {
"height": "initial",
"createQuery": [MockFunction],
"getPrometheusTime": [MockFunction],
}
}
>
<PromQueryField
datasource={
Object {
"createQuery": [MockFunction],
"getPrometheusTime": [MockFunction],
}
}
datasourceStatus={0}
history={Array []}
onChange={[Function]}
onRunQuery={[Function]}
query={
Object {
"expr": "",
"refId": "A",
}
datasourceStatus={0}
history={Array []}
onChange={[Function]}
onRunQuery={[Function]}
query={
Object {
"expr": "",
"refId": "A",
}
/>
</div>
}
/>
<div
className="gf-form-inline"
>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment