2018-12-14 14:38:36 +01:00
|
|
|
import { OHIF } from 'ohif-core';
|
2017-03-17 02:39:41 +01:00
|
|
|
|
2017-02-10 15:54:22 +01:00
|
|
|
// Functions
|
2018-12-13 23:24:39 +01:00
|
|
|
/*import { getStudyPriors } from './getStudyPriors';
|
2017-02-10 15:54:22 +01:00
|
|
|
import { getStudyPriorsMap } from './getStudyPriorsMap';
|
2017-01-16 21:04:36 +01:00
|
|
|
|
2017-03-17 02:39:41 +01:00
|
|
|
OHIF.studylist.functions = {
|
|
|
|
|
getStudyPriors,
|
|
|
|
|
getStudyPriorsMap
|
2018-12-13 23:24:39 +01:00
|
|
|
};*/
|
2016-01-13 16:17:32 +01:00
|
|
|
|
2017-03-17 02:39:41 +01:00
|
|
|
const dblClickOnStudy = data => {
|
2018-12-14 14:38:36 +01:00
|
|
|
// TODO: Switch to more appropriate routing
|
|
|
|
|
window.router.history.push(`/viewer/${data.studyInstanceUid}`);
|
2018-12-12 18:06:25 +01:00
|
|
|
console.log('dblClickOnStudy');
|
2016-09-29 17:25:04 +02:00
|
|
|
};
|
|
|
|
|
|
2017-03-17 02:39:41 +01:00
|
|
|
OHIF.studylist.callbacks.dblClickOnStudy = dblClickOnStudy;
|
|
|
|
|
OHIF.studylist.callbacks.middleClickOnStudy = dblClickOnStudy;
|