mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
added loading state
This commit is contained in:
parent
29e18fddd0
commit
7799ad8108
@ -18,6 +18,7 @@ import { getNavModel } from 'app/core/selectors/navModel';
|
|||||||
import { getRouteParamsId } from 'app/core/selectors/location';
|
import { getRouteParamsId } from 'app/core/selectors/location';
|
||||||
|
|
||||||
import { DataSource, NavModel, Plugin } from 'app/types/';
|
import { DataSource, NavModel, Plugin } from 'app/types/';
|
||||||
|
import { getDataSourceLoadingNav } from '../state/navModel';
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
navModel: NavModel;
|
navModel: NavModel;
|
||||||
@ -227,7 +228,7 @@ function mapStateToProps(state) {
|
|||||||
const dataSource = getDataSource(state.dataSources, pageId);
|
const dataSource = getDataSource(state.dataSources, pageId);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
navModel: getNavModel(state.navIndex, `datasource-settings-${pageId}`),
|
navModel: getNavModel(state.navIndex, `datasource-settings-${pageId}`, getDataSourceLoadingNav('settings')),
|
||||||
dataSource: getDataSource(state.dataSources, pageId),
|
dataSource: getDataSource(state.dataSources, pageId),
|
||||||
dataSourceMeta: getDataSourceMeta(state.dataSources, dataSource.type),
|
dataSourceMeta: getDataSourceMeta(state.dataSources, dataSource.type),
|
||||||
pageId: pageId,
|
pageId: pageId,
|
||||||
|
Loading…
Reference in New Issue
Block a user