added loading state

This commit is contained in:
Peter Holmberg 2018-11-08 09:34:14 +01:00
parent 29e18fddd0
commit 7799ad8108

View File

@ -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,