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
d54e6219
Unverified
Commit
d54e6219
authored
Dec 15, 2020
by
Ryan McKinley
Committed by
GitHub
Dec 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QueryOptions: Open QueryEditors: run queries after changing group options #29864
parent
75761bf6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
public/app/features/query/components/QueryGroup.tsx
+7
-2
public/app/features/query/components/QueryGroupOptions.tsx
+7
-3
No files found.
public/app/features/query/components/QueryGroup.tsx
View file @
d54e6219
...
@@ -167,8 +167,13 @@ export class QueryGroup extends PureComponent<Props, State> {
...
@@ -167,8 +167,13 @@ export class QueryGroup extends PureComponent<Props, State> {
this
.
setState
({
scrollTop
:
1000
});
this
.
setState
({
scrollTop
:
1000
});
};
};
onUpdateAndRun
=
(
options
:
QueryGroupOptions
)
=>
{
this
.
props
.
onOptionsChange
(
options
);
this
.
props
.
onRunQueries
();
};
renderTopSection
(
styles
:
QueriesTabStyls
)
{
renderTopSection
(
styles
:
QueriesTabStyls
)
{
const
{
onOpenQueryInspector
,
options
,
onOptionsChange
}
=
this
.
props
;
const
{
onOpenQueryInspector
,
options
}
=
this
.
props
;
const
{
dataSource
,
data
}
=
this
.
state
;
const
{
dataSource
,
data
}
=
this
.
state
;
return
(
return
(
...
@@ -199,7 +204,7 @@ export class QueryGroup extends PureComponent<Props, State> {
...
@@ -199,7 +204,7 @@ export class QueryGroup extends PureComponent<Props, State> {
options=
{
options
}
options=
{
options
}
dataSource=
{
dataSource
}
dataSource=
{
dataSource
}
data=
{
data
}
data=
{
data
}
onChange=
{
onOptionsChange
}
onChange=
{
this
.
onUpdateAndRun
}
/>
/>
</
div
>
</
div
>
{
onOpenQueryInspector
&&
(
{
onOpenQueryInspector
&&
(
...
...
public/app/features/query/components/QueryGroupOptions.tsx
View file @
d54e6219
...
@@ -144,19 +144,23 @@ export class QueryGroupOptionsEditor extends PureComponent<Props, State> {
...
@@ -144,19 +144,23 @@ export class QueryGroupOptionsEditor extends PureComponent<Props, State> {
maxDataPoints
=
null
;
maxDataPoints
=
null
;
}
}
if
(
maxDataPoints
!==
options
.
maxDataPoints
)
{
onChange
({
onChange
({
...
options
,
...
options
,
maxDataPoints
:
maxDataPoints
,
maxDataPoints
,
});
});
}
};
};
onMinIntervalBlur
=
(
event
:
ChangeEvent
<
HTMLInputElement
>
)
=>
{
onMinIntervalBlur
=
(
event
:
ChangeEvent
<
HTMLInputElement
>
)
=>
{
const
{
options
,
onChange
}
=
this
.
props
;
const
{
options
,
onChange
}
=
this
.
props
;
const
minInterval
=
emptyToNull
(
event
.
target
.
value
);
if
(
minInterval
!==
options
.
minInterval
)
{
onChange
({
onChange
({
...
options
,
...
options
,
minInterval
:
emptyToNull
(
event
.
target
.
value
)
,
minInterval
,
});
});
}
};
};
renderCacheTimeoutOption
()
{
renderCacheTimeoutOption
()
{
...
...
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