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
32c9d558
Unverified
Commit
32c9d558
authored
Dec 11, 2019
by
Ivana Huckova
Committed by
GitHub
Dec 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explore: Sync timepicker and logs after live-tailing stops (#20979)
parent
8495af4c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
public/app/features/explore/LiveTailButton.tsx
+0
-3
public/app/features/explore/useLiveTailControls.ts
+2
-1
No files found.
public/app/features/explore/LiveTailButton.tsx
View file @
32c9d558
...
...
@@ -24,7 +24,6 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => {
`
,
liveButton
:
css
`
label: liveButton;
transition: background-color 1s, border-color 1s, color 1s;
margin: 0;
`
,
isLive
:
css
`
...
...
@@ -84,7 +83,6 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => {
label: stopButtonEnterActive;
opacity: 1;
width: 32px;
transition: opacity 500ms ease-in 50ms, width 500ms ease-in 50ms;
`
,
stopButtonExit
:
css
`
label: stopButtonExit;
...
...
@@ -96,7 +94,6 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => {
label: stopButtonExitActive;
opacity: 0;
width: 0;
transition: opacity 500ms ease-in 50ms, width 500ms ease-in 50ms;
`
,
};
});
...
...
public/app/features/explore/useLiveTailControls.ts
View file @
32c9d558
import
React
,
{
useCallback
}
from
'react'
;
import
{
useDispatch
}
from
'react-redux'
;
import
{
changeRefreshInterval
}
from
'./state/actions'
;
import
{
changeRefreshInterval
,
runQueries
}
from
'./state/actions'
;
import
{
setPausedStateAction
}
from
'./state/actionTypes'
;
import
{
RefreshPicker
}
from
'@grafana/ui'
;
import
{
ExploreId
}
from
'../../types'
;
...
...
@@ -29,6 +29,7 @@ export function useLiveTailControls(exploreId: ExploreId) {
// TODO referencing this from perspective of refresh picker when there is designated button for it now is not
// great. Needs a bit of refactoring.
dispatch
(
changeRefreshInterval
(
exploreId
,
RefreshPicker
.
offOption
.
value
));
dispatch
(
runQueries
(
exploreId
));
},
[
exploreId
,
dispatch
,
pause
]);
const
start
=
useCallback
(()
=>
{
...
...
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