Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
40e5c4f8
Unverified
Commit
40e5c4f8
authored
Jun 26, 2019
by
Torkel Ödegaard
Committed by
GitHub
Jun 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prometheus: Minor style fix (#17773)
* Prometheus: Minor style fix * Updated snapshot
parent
7acbb94b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
35 deletions
+24
-35
public/app/plugins/datasource/prometheus/components/PromQueryEditor.tsx
+10
-12
public/app/plugins/datasource/prometheus/components/__snapshots__/PromQueryEditor.test.tsx.snap
+14
-23
No files found.
public/app/plugins/datasource/prometheus/components/PromQueryEditor.tsx
View file @
40e5c4f8
...
...
@@ -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"
>
...
...
public/app/plugins/datasource/prometheus/components/__snapshots__/PromQueryEditor.test.tsx.snap
View file @
40e5c4f8
...
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment