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-01-10 13:30:39 +01:00
|
|
|
import OHIF from 'ohif-core'
|
|
|
|
|
|
|
|
|
|
const { setStudyLoadingProgress, clearStudyLoadingProgress } = OHIF.redux.actions;
|
|
|
|
|
|
|
|
|
|
const mapDispatchToProps = dispatch => {
|
|
|
|
|
return {
|
|
|
|
|
setStudyLoadingProgress: (progressId, progressData) => {
|
|
|
|
|
dispatch(setStudyLoadingProgress(progressId, progressData))
|
|
|
|
|
},
|
|
|
|
|
clearStudyLoadingProgress: progressId => {
|
|
|
|
|
dispatch(clearStudyLoadingProgress(progressId))
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const ConnectedStudyLoadingMonitor = connect(
|
|
|
|
|
null,
|
|
|
|
|
mapDispatchToProps
|
|
|
|
|
)(StudyLoadingMonitor);
|
|
|
|
|
|
|
|
|
|
export default ConnectedStudyLoadingMonitor;
|