mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Explore: Sync timepicker and logs after live-tailing stops (#20979)
This commit is contained in:
parent
8495af4c52
commit
32c9d558f9
@ -24,7 +24,6 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => {
|
|||||||
`,
|
`,
|
||||||
liveButton: css`
|
liveButton: css`
|
||||||
label: liveButton;
|
label: liveButton;
|
||||||
transition: background-color 1s, border-color 1s, color 1s;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
`,
|
`,
|
||||||
isLive: css`
|
isLive: css`
|
||||||
@ -84,7 +83,6 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => {
|
|||||||
label: stopButtonEnterActive;
|
label: stopButtonEnterActive;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
width: 32px;
|
width: 32px;
|
||||||
transition: opacity 500ms ease-in 50ms, width 500ms ease-in 50ms;
|
|
||||||
`,
|
`,
|
||||||
stopButtonExit: css`
|
stopButtonExit: css`
|
||||||
label: stopButtonExit;
|
label: stopButtonExit;
|
||||||
@ -96,7 +94,6 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => {
|
|||||||
label: stopButtonExitActive;
|
label: stopButtonExitActive;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
width: 0;
|
width: 0;
|
||||||
transition: opacity 500ms ease-in 50ms, width 500ms ease-in 50ms;
|
|
||||||
`,
|
`,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from 'react';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
|
|
||||||
import { changeRefreshInterval } from './state/actions';
|
import { changeRefreshInterval, runQueries } from './state/actions';
|
||||||
import { setPausedStateAction } from './state/actionTypes';
|
import { setPausedStateAction } from './state/actionTypes';
|
||||||
import { RefreshPicker } from '@grafana/ui';
|
import { RefreshPicker } from '@grafana/ui';
|
||||||
import { ExploreId } from '../../types';
|
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
|
// TODO referencing this from perspective of refresh picker when there is designated button for it now is not
|
||||||
// great. Needs a bit of refactoring.
|
// great. Needs a bit of refactoring.
|
||||||
dispatch(changeRefreshInterval(exploreId, RefreshPicker.offOption.value));
|
dispatch(changeRefreshInterval(exploreId, RefreshPicker.offOption.value));
|
||||||
|
dispatch(runQueries(exploreId));
|
||||||
}, [exploreId, dispatch, pause]);
|
}, [exploreId, dispatch, pause]);
|
||||||
|
|
||||||
const start = useCallback(() => {
|
const start = useCallback(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user