mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
* [Metrics] Always display loading indicator when new data is loading * Add loading data sources indicator to Metrics Explorer tab
This commit is contained in:
parent
2e08f41705
commit
90788a90b3
2 changed files with 3 additions and 3 deletions
|
@ -38,13 +38,12 @@ export const MetricsExplorerCharts = ({
|
|||
options,
|
||||
chartOptions,
|
||||
onRefetch,
|
||||
|
||||
onFilter,
|
||||
source,
|
||||
timeRange,
|
||||
onTimeChange,
|
||||
}: Props) => {
|
||||
if (!data && loading) {
|
||||
if (loading) {
|
||||
return (
|
||||
<InfraLoadingPanel
|
||||
height={800}
|
||||
|
|
|
@ -11,6 +11,7 @@ import { StaticIndexPattern } from 'ui/index_patterns';
|
|||
import { DocumentTitle } from '../../../components/document_title';
|
||||
import { MetricsExplorerCharts } from '../../../components/metrics_explorer/charts';
|
||||
import { MetricsExplorerToolbar } from '../../../components/metrics_explorer/toolbar';
|
||||
import { SourceLoadingPage } from '../../../components/source_loading_page';
|
||||
import { SourceQuery } from '../../../../common/graphql/types';
|
||||
import { NoData } from '../../../components/empty_states';
|
||||
import { useMetricsExplorerState } from './use_metric_explorer_state';
|
||||
|
@ -23,7 +24,7 @@ interface MetricsExplorerPageProps {
|
|||
|
||||
export const MetricsExplorerPage = ({ source, derivedIndexPattern }: MetricsExplorerPageProps) => {
|
||||
if (!source) {
|
||||
return null;
|
||||
return <SourceLoadingPage />;
|
||||
}
|
||||
|
||||
const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue