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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
11 deletions
+20
-11
public/app/features/query/components/QueryGroup.tsx
+7
-2
public/app/features/query/components/QueryGroupOptions.tsx
+13
-9
No files found.
public/app/features/query/components/QueryGroup.tsx
View file @
d54e6219
...
...
@@ -167,8 +167,13 @@ export class QueryGroup extends PureComponent<Props, State> {
this
.
setState
({
scrollTop
:
1000
});
};
onUpdateAndRun
=
(
options
:
QueryGroupOptions
)
=>
{
this
.
props
.
onOptionsChange
(
options
);
this
.
props
.
onRunQueries
();
};
renderTopSection
(
styles
:
QueriesTabStyls
)
{
const
{
onOpenQueryInspector
,
options
,
onOptionsChange
}
=
this
.
props
;
const
{
onOpenQueryInspector
,
options
}
=
this
.
props
;
const
{
dataSource
,
data
}
=
this
.
state
;
return
(
...
...
@@ -199,7 +204,7 @@ export class QueryGroup extends PureComponent<Props, State> {
options=
{
options
}
dataSource=
{
dataSource
}
data=
{
data
}
onChange=
{
onOptionsChange
}
onChange=
{
this
.
onUpdateAndRun
}
/>
</
div
>
{
onOpenQueryInspector
&&
(
...
...
public/app/features/query/components/QueryGroupOptions.tsx
View file @
d54e6219
...
...
@@ -144,19 +144,23 @@ export class QueryGroupOptionsEditor extends PureComponent<Props, State> {
maxDataPoints
=
null
;
}
onChange
({
...
options
,
maxDataPoints
:
maxDataPoints
,
});
if
(
maxDataPoints
!==
options
.
maxDataPoints
)
{
onChange
({
...
options
,
maxDataPoints
,
});
}
};
onMinIntervalBlur
=
(
event
:
ChangeEvent
<
HTMLInputElement
>
)
=>
{
const
{
options
,
onChange
}
=
this
.
props
;
onChange
({
...
options
,
minInterval
:
emptyToNull
(
event
.
target
.
value
),
});
const
minInterval
=
emptyToNull
(
event
.
target
.
value
);
if
(
minInterval
!==
options
.
minInterval
)
{
onChange
({
...
options
,
minInterval
,
});
}
};
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