mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
add loading log for dash and exploreview breakdown whole page load action to multiple charts loading events and render events
32 lines
949 B
JavaScript
32 lines
949 B
JavaScript
import { bindActionCreators } from 'redux';
|
|
import { connect } from 'react-redux';
|
|
|
|
import * as dashboardActions from '../actions';
|
|
import * as chartActions from '../../chart/chartAction';
|
|
import Dashboard from './Dashboard';
|
|
|
|
function mapStateToProps({ charts, dashboard, impressionId }) {
|
|
return {
|
|
initMessages: dashboard.common.flash_messages,
|
|
timeout: dashboard.common.conf.SUPERSET_WEBSERVER_TIMEOUT,
|
|
dashboard: dashboard.dashboard,
|
|
slices: charts,
|
|
datasources: dashboard.datasources,
|
|
filters: dashboard.filters,
|
|
refresh: !!dashboard.refresh,
|
|
userId: dashboard.userId,
|
|
isStarred: !!dashboard.isStarred,
|
|
editMode: dashboard.editMode,
|
|
impressionId,
|
|
};
|
|
}
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
const actions = { ...chartActions, ...dashboardActions };
|
|
return {
|
|
actions: bindActionCreators(actions, dispatch),
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(Dashboard);
|