2019-01-10 13:30:39 +01:00
|
|
|
import { connect } from 'react-redux';
|
2019-01-17 17:00:21 +01:00
|
|
|
import StudyLoadingMonitor from '../components/StudyLoadingMonitor.js';
|
2019-05-29 14:39:54 +02:00
|
|
|
import OHIF from 'ohif-core';
|
2019-01-10 13:30:39 +01:00
|
|
|
|
2019-05-29 14:39:54 +02:00
|
|
|
const {
|
|
|
|
|
setStudyLoadingProgress,
|
|
|
|
|
clearStudyLoadingProgress,
|
|
|
|
|
} = OHIF.redux.actions;
|
2019-01-10 13:30:39 +01:00
|
|
|
|
|
|
|
|
const mapDispatchToProps = dispatch => {
|
2019-05-29 14:39:54 +02:00
|
|
|
return {
|
|
|
|
|
setStudyLoadingProgress: (progressId, progressData) => {
|
|
|
|
|
dispatch(setStudyLoadingProgress(progressId, progressData));
|
|
|
|
|
},
|
|
|
|
|
clearStudyLoadingProgress: progressId => {
|
|
|
|
|
dispatch(clearStudyLoadingProgress(progressId));
|
|
|
|
|
},
|
|
|
|
|
};
|
2019-01-10 13:30:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const ConnectedStudyLoadingMonitor = connect(
|
2019-05-29 14:39:54 +02:00
|
|
|
null,
|
|
|
|
|
mapDispatchToProps
|
2019-01-10 13:30:39 +01:00
|
|
|
)(StudyLoadingMonitor);
|
|
|
|
|
|
|
|
|
|
export default ConnectedStudyLoadingMonitor;
|